home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / CIncludes / HILists.xh < prev    next >
Text File  |  1996-05-01  |  174KB  |  5,743 lines

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: HILists.xh.
  5.  * Generated using:
  6.  *     SOM Precompiler somipc: 2.18
  7.  *     SOM Emitter emitxh.dll: 2.33
  8.  */
  9.  
  10. #ifndef SOM_HIAbstractList_xh
  11. #define SOM_HIAbstractList_xh
  12.  
  13. class HIAbstractList;
  14.  
  15. #define HIAbstractList_MajorVersion 0
  16. #define HIAbstractList_MinorVersion 0
  17.  
  18. /*
  19.  * Passthru lines: File: "C.xh", "before"
  20.  */
  21. #include <HIImagingObjects.xh>
  22. #include <HIListTypes.h>
  23.  
  24. /* C++ SOM defs */
  25. #include <somcls.xh>
  26. #include <somcm.xh>
  27.  
  28. /* C++ parent defs */
  29. #ifndef SOM_HIPanel_xh
  30. #include <HIPanels.xh>
  31. #endif
  32.  
  33. #ifndef HIAbstractList_API
  34. #define HIAbstractList_API
  35. /*
  36.  * -- The Class API
  37.  */
  38.  
  39. /*
  40.  * Start of user-defined types:
  41.  */
  42. class SOMClass;
  43. class SOMObject;
  44. class HIWindow;
  45. class HIEmbeddingPanel;
  46.  
  47. /*
  48.  * End of user-defined types.
  49.  */
  50.  
  51. #ifdef OLDIBMSOMAPISUPPORT
  52. #define HIAbstractListCClassData HIAbstractListClassData
  53. #define HIAbstractListNewClass(major,minor) somNewVersionedClassReference(HIAbstractList,major,minor)
  54. #endif
  55.  
  56. /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
  57. #define HIAbstractListMetaClass SOMClass
  58.  
  59. #if PRAGMA_ALIGN_SUPPORTED
  60. #  pragma options align=power
  61. #endif
  62.  
  63. /* The API to the HIAbstractList class object, and the methods it introduces. */
  64. SOMEXTERN struct HIAbstractListClassDataStructure {
  65. #ifdef OLDIBMSOMAPISUPPORT
  66.     SOMClass            *classObject;    /* always zero, use somNewClassReference instead */
  67. #else
  68.     long zero;
  69. #endif
  70.     somStaticClassInfo *sci;
  71.     somDToken        instanceDataToken;
  72.     long reserved [3];
  73.     somMToken InitAbstractList;
  74.     somMToken AddItems;
  75.     somMToken DeleteItem;
  76.     somMToken SetItemImage;
  77.     somMToken GetItemImage;
  78.     somMToken SetItemMark;
  79.     somMToken GetItemMark;
  80.     somMToken SetItemIcon;
  81.     somMToken GetItemIcon;
  82.     somMToken SetItemChild;
  83.     somMToken GetItemChild;
  84.     somMToken SetItemEnabledState;
  85.     somMToken GetItemEnabledState;
  86.     somMToken SetItemAttributes;
  87.     somMToken GetItemAttributes;
  88.     somMToken SetItemRefLabel;
  89.     somMToken GetItemRefLabel;
  90.     somMToken GetItemCount;
  91.     somMToken GetItemRect;
  92.     somMToken HitTest;
  93.     somMToken SelectItem;
  94.     somMToken DeselectItem;
  95.     somMToken GetSelectedItem;
  96.     somMToken AddItemCollectionItem;
  97.     somMToken GetItemCollectionItemData;
  98.     somMToken RemoveItemCollectionItem;
  99.     somMToken reserved0;
  100. } SOMDLINK HIAbstractListClassData;
  101.  
  102. #if PRAGMA_ALIGN_SUPPORTED
  103. #  pragma options align=reset
  104. #endif
  105.  
  106. #if !defined(HIAbstractList_Class_Source) && !defined(SOM_Module_hilists_Source)
  107. #if PRAGMA_IMPORT_SUPPORTED
  108. #pragma import list HIAbstractListClassData
  109. #endif
  110. #endif
  111.  
  112.  
  113. /*
  114.  * -- Typedefs for HIAbstractList Method Procedures
  115.  */
  116. SOMEXTERN {
  117. typedef OSStatus   (* SOMLINK somTD_HIAbstractList_InitAbstractList)(HIAbstractList *somSelf, Environment *ev,
  118.         RefLabel* identifier,
  119.         HIWindow* window,
  120.         Rect* bounds);
  121. typedef OSStatus   (* SOMLINK somTD_HIAbstractList_AddItems)(HIAbstractList *somSelf, Environment *ev,
  122.         HIItemIndex index,
  123.         UInt32 numItems);
  124. typedef OSStatus   (* SOMLINK somTD_HIAbstractList_DeleteItem)(HIAbstractList *somSelf, Environment *ev,
  125.         HIItemIndex index);
  126. typedef OSStatus   (* SOMLINK somTD_HIAbstractList_SetItemImage)(HIAbstractList *somSelf, Environment *ev,
  127.         HIItemIndex index,
  128.         ConstHIImageRef imageRef,
  129.         HIAdoptionFlags imageAdoptionFlags);
  130. typedef OSStatus   (* SOMLINK somTD_HIAbstractList_GetItemImage)(HIAbstractList *somSelf, Environment *ev,
  131.         HIItemIndex index,
  132.         HIImageRef* imageRefPtr);
  133. typedef OSStatus   (* SOMLINK somTD_HIAbstractList_SetItemMark)(HIAbstractList *somSelf, Environment *ev,
  134.         HIItemIndex index,
  135.         UInt16 markChar);
  136. typedef UInt16   (* SOMLINK somTD_HIAbstractList_GetItemMark)(HIAbstractList *somSelf, Environment *ev,
  137.         HIItemIndex index);
  138. typedef OSStatus   (* SOMLINK somTD_HIAbstractList_SetItemIcon)(HIAbstractList *somSelf, Environment *ev,
  139.         HIItemIndex index,
  140.         Handle iconSuite);
  141. typedef Handle   (* SOMLINK somTD_HIAbstractList_GetItemIcon)(HIAbstractList *somSelf, Environment *ev,
  142.         HIItemIndex index);
  143. typedef OSStatus   (* SOMLINK somTD_HIAbstractList_SetItemChild)(HIAbstractList *somSelf, Environment *ev,
  144.         HIItemIndex index,
  145.         HIAbstractList* child);
  146. typedef OSStatus   (* SOMLINK somTD_HIAbstractList_GetItemChild)(HIAbstractList *somSelf, Environment *ev,
  147.         HIItemIndex index,
  148.         HIAbstractList** child);
  149. typedef OSStatus   (* SOMLINK somTD_HIAbstractList_SetItemEnabledState)(HIAbstractList *somSelf, Environment *ev,
  150.         HIItemIndex index,
  151.         HIItemState enableState);
  152. typedef HIItemState   (* SOMLINK somTD_HIAbstractList_GetItemEnabledState)(HIAbstractList *somSelf, Environment *ev,
  153.         HIItemIndex index);
  154. typedef OSStatus   (* SOMLINK somTD_HIAbstractList_SetItemAttributes)(HIAbstractList *somSelf, Environment *ev,
  155.         HIItemIndex index,
  156.         HIItemAttributes attributes);
  157. typedef HIItemAttributes   (* SOMLINK somTD_HIAbstractList_GetItemAttributes)(HIAbstractList *somSelf, Environment *ev,
  158.         HIItemIndex index);
  159. typedef OSStatus   (* SOMLINK somTD_HIAbstractList_SetItemRefLabel)(HIAbstractList *somSelf, Environment *ev,
  160.         HIItemIndex index,
  161.         RefLabel* identifier);
  162. typedef OSStatus   (* SOMLINK somTD_HIAbstractList_GetItemRefLabel)(HIAbstractList *somSelf, Environment *ev,
  163.         HIItemIndex index,
  164.         RefLabel* identifier);
  165. typedef UInt32   (* SOMLINK somTD_HIAbstractList_GetItemCount)(HIAbstractList *somSelf, Environment *ev);
  166. typedef void   (* SOMLINK somTD_HIAbstractList_SelectItem)(HIAbstractList *somSelf, Environment *ev,
  167.         HIItemIndex index);
  168. typedef void   (* SOMLINK somTD_HIAbstractList_DeselectItem)(HIAbstractList *somSelf, Environment *ev,
  169.         HIItemIndex index);
  170. typedef HIItemIndex   (* SOMLINK somTD_HIAbstractList_GetSelectedItem)(HIAbstractList *somSelf, Environment *ev);
  171. typedef OSStatus   (* SOMLINK somTD_HIAbstractList_AddItemCollectionItem)(HIAbstractList *somSelf, Environment *ev,
  172.         HIItemIndex index,
  173.         CollectionTag tag,
  174.         UInt32 dataSize,
  175.         void* data);
  176. typedef OSStatus   (* SOMLINK somTD_HIAbstractList_GetItemCollectionItemData)(HIAbstractList *somSelf, Environment *ev,
  177.         HIItemIndex index,
  178.         CollectionTag tag,
  179.         UInt32 dataSizeIn,
  180.         UInt32* dataSizeOut,
  181.         void* data);
  182. typedef OSStatus   (* SOMLINK somTD_HIAbstractList_RemoveItemCollectionItem)(HIAbstractList *somSelf, Environment *ev,
  183.         HIItemIndex index,
  184.         CollectionTag tag);
  185.  
  186. /*
  187.  * -- Typedefs for Inherited Methods
  188.  */
  189. typedef HIEmbeddingPanel*   (* SOMLINK somTD_HIAbstractList_GetEmbeddingParent)(HIAbstractList *somSelf, Environment *ev);
  190. typedef OSStatus   (* SOMLINK somTD_HIAbstractList_InitPanel)(HIAbstractList *somSelf, Environment *ev,
  191.         RefLabel* identifier,
  192.         HIWindow* window,
  193.         Rect* bounds);
  194. typedef OSStatus   (* SOMLINK somTD_HIAbstractList_RegisterInterestInAppleEvent)(HIAbstractList *somSelf, Environment *ev,
  195.         AEHandlerTableRef table,
  196.         AEEventClass eventClass,
  197.         AEEventID eventID,
  198.         HIEventRoutingType eventRouting);
  199. typedef boolean   (* SOMLINK somTD_HIAbstractList_HasValidContent)(HIAbstractList *somSelf, Environment *ev);
  200. typedef OSStatus   (* SOMLINK somTD_HIAbstractList_GetDeepCollectionItemData)(HIAbstractList *somSelf, Environment *ev,
  201.         CollectionTag tag,
  202.         SInt32 id,
  203.         ByteCount sizeAllowed,
  204.         ByteCount* sizeReturned,
  205.         void* itemData);
  206. typedef HIWindow*   (* SOMLINK somTD_HIAbstractList_GetWindow)(HIAbstractList *somSelf, Environment *ev);
  207. typedef CGrafPtr   (* SOMLINK somTD_HIAbstractList_GetPort)(HIAbstractList *somSelf, Environment *ev);
  208. typedef void   (* SOMLINK somTD_HIAbstractList_GetRefLabel)(HIAbstractList *somSelf, Environment *ev,
  209.         RefLabel* identifier);
  210. typedef Collection   (* SOMLINK somTD_HIAbstractList_GetCollection)(HIAbstractList *somSelf, Environment *ev);
  211. typedef OSStatus   (* SOMLINK somTD_HIAbstractList_Init)(HIAbstractList *somSelf, Environment *ev,
  212.         RefLabel* identifier,
  213.         Rect* boundingRect);
  214. typedef void   (* SOMLINK somTD_HIAbstractList_Terminate)(HIAbstractList *somSelf, Environment *ev);
  215. typedef HIObject*   (* SOMLINK somTD_HIAbstractList_Clone)(HIAbstractList *somSelf, Environment *ev);
  216. typedef void   (* SOMLINK somTD_HIAbstractList_Release)(HIAbstractList *somSelf, Environment *ev);
  217. typedef ItemCount   (* SOMLINK somTD_HIAbstractList_GetOwnerCount)(HIAbstractList *somSelf, Environment *ev);
  218. typedef OSStatus   (* SOMLINK somTD_HIAbstractList_InitFromAERecord)(HIAbstractList *somSelf, Environment *ev,
  219.         AESubDesc* baseInitializerData,
  220.         AESubDesc* initializerDataForClass,
  221.         HIAERecordDataFormat dataFormat);
  222. typedef OSStatus   (* SOMLINK somTD_HIAbstractList_WriteToAERecord)(HIAbstractList *somSelf, Environment *ev,
  223.         AERecord* dataForSubclass,
  224.         AERecord* objectData,
  225.         HIAERecordDataFormat dataFormat);
  226. typedef void   (* SOMLINK somTD_HIAbstractList_CalculateOptimalSize)(HIAbstractList *somSelf, Environment *ev,
  227.         SInt16* optimalWidth,
  228.         SInt16* optimalHeight);
  229. typedef void   (* SOMLINK somTD_HIAbstractList_GetBoundingRect)(HIAbstractList *somSelf, Environment *ev,
  230.         HICoordinateSystem coordinate,
  231.         Rect* boundingRect);
  232. typedef void   (* SOMLINK somTD_HIAbstractList_SetBoundingRect)(HIAbstractList *somSelf, Environment *ev,
  233.         HICoordinateSystem coordinate,
  234.         Rect* newBoundingRect);
  235. typedef void   (* SOMLINK somTD_HIAbstractList_SetPosition)(HIAbstractList *somSelf, Environment *ev,
  236.         HICoordinateSystem coordinate,
  237.         Point* newPosition);
  238. typedef void   (* SOMLINK somTD_HIAbstractList_SetSize)(HIAbstractList *somSelf, Environment *ev,
  239.         SInt16 width,
  240.         SInt16 height);
  241. typedef void   (* SOMLINK somTD_HIAbstractList_GetUpdateRect)(HIAbstractList *somSelf, Environment *ev,
  242.         HICoordinateSystem coordinate,
  243.         Rect* updateRect);
  244. typedef void   (* SOMLINK somTD_HIAbstractList_Enable)(HIAbstractList *somSelf, Environment *ev);
  245. typedef void   (* SOMLINK somTD_HIAbstractList_Disable)(HIAbstractList *somSelf, Environment *ev);
  246. typedef boolean   (* SOMLINK somTD_HIAbstractList_IsEnabled)(HIAbstractList *somSelf, Environment *ev);
  247. typedef void   (* SOMLINK somTD_HIAbstractList_Show)(HIAbstractList *somSelf, Environment *ev);
  248. typedef void   (* SOMLINK somTD_HIAbstractList_Hide)(HIAbstractList *somSelf, Environment *ev);
  249. typedef boolean   (* SOMLINK somTD_HIAbstractList_IsVisible)(HIAbstractList *somSelf, Environment *ev);
  250. typedef OSStatus   (* SOMLINK somTD_HIAbstractList_HandleAppleEvent)(HIAbstractList *somSelf, Environment *ev,
  251.         AEEventClass eventClass,
  252.         AEEventID eventID,
  253.         AppleEvent* theEvent,
  254.         AppleEvent* reply,
  255.         AEHandlerTableRef handlerTableRef);
  256. typedef OSStatus   (* SOMLINK somTD_HIAbstractList_HandleActivate)(HIAbstractList *somSelf, Environment *ev,
  257.         AppleEvent* theEvent,
  258.         AppleEvent* reply,
  259.         AEHandlerTableRef handlerTableRef);
  260. typedef OSStatus   (* SOMLINK somTD_HIAbstractList_HandleDeactivate)(HIAbstractList *somSelf, Environment *ev,
  261.         AppleEvent* theEvent,
  262.         AppleEvent* reply,
  263.         AEHandlerTableRef handlerTableRef);
  264. typedef OSStatus   (* SOMLINK somTD_HIAbstractList_HandleNavigation)(HIAbstractList *somSelf, Environment *ev,
  265.         SInt8 key,
  266.         SInt8 keyCode,
  267.         EventModifiers modifiers,
  268.         AppleEvent* theEvent,
  269.         AppleEvent* reply,
  270.         AEHandlerTableRef handlerTableRef);
  271. typedef OSStatus   (* SOMLINK somTD_HIAbstractList_HandleMouseDownInContent)(HIAbstractList *somSelf, Environment *ev,
  272.         Point* portLocalWhere,
  273.         EventModifiers modifiers,
  274.         AppleEvent* theEvent,
  275.         AppleEvent* reply,
  276.         AEHandlerTableRef handlerTableRef);
  277. typedef OSStatus   (* SOMLINK somTD_HIAbstractList_HandleMouseMovedInContent)(HIAbstractList *somSelf, Environment *ev,
  278.         Point* portLocalWhere,
  279.         EventModifiers modifiers,
  280.         AppleEvent* theEvent,
  281.         AppleEvent* reply,
  282.         AEHandlerTableRef handlerTableRef);
  283. typedef OSStatus   (* SOMLINK somTD_HIAbstractList_HandleMouseStoppedMovingInContent)(HIAbstractList *somSelf, Environment *ev,
  284.         Point* portLocalWhere,
  285.         EventModifiers modifiers,
  286.         AppleEvent* theEvent,
  287.         AppleEvent* reply,
  288.         AEHandlerTableRef handlerTableRef);
  289. typedef OSStatus   (* SOMLINK somTD_HIAbstractList_HandleMouseUpInContent)(HIAbstractList *somSelf, Environment *ev,
  290.         Point* portLocalWhere,
  291.         EventModifiers modifiers,
  292.         AppleEvent* theEvent,
  293.         AppleEvent* reply,
  294.         AEHandlerTableRef handlerTableRef);
  295. typedef void   (* SOMLINK somTD_HIAbstractList_TakeUserInputFocus)(HIAbstractList *somSelf, Environment *ev);
  296. typedef void   (* SOMLINK somTD_HIAbstractList_ReleaseUserInputFocus)(HIAbstractList *somSelf, Environment *ev);
  297. typedef boolean   (* SOMLINK somTD_HIAbstractList_HasUserInputFocus)(HIAbstractList *somSelf, Environment *ev);
  298. typedef boolean   (* SOMLINK somTD_HIAbstractList_CanReleaseUserInputFocus)(HIAbstractList *somSelf, Environment *ev);
  299. typedef void   (* SOMLINK somTD_HIAbstractList_SetUserInputFocusFlags)(HIAbstractList *somSelf, Environment *ev,
  300.         HIUserInputFocusFlags flags);
  301. typedef HIUserInputFocusFlags   (* SOMLINK somTD_HIAbstractList_GetUserInputFocusFlags)(HIAbstractList *somSelf, Environment *ev);
  302. typedef OSStatus   (* SOMLINK somTD_HIAbstractList_SetTitle)(HIAbstractList *somSelf, Environment *ev,
  303.         ConstHIImageRef title,
  304.         HIAdoptionFlags disposalAdoptionFlags);
  305. typedef OSStatus   (* SOMLINK somTD_HIAbstractList_GetTitle)(HIAbstractList *somSelf, Environment *ev,
  306.         HIImageRef* title);
  307. typedef void   (* SOMLINK somTD_HIAbstractList_Draw)(HIAbstractList *somSelf, Environment *ev,
  308.         CGrafPtr whichPort,
  309.         RgnHandle drawRgn);
  310. typedef void   (* SOMLINK somTD_HIAbstractList_Erase)(HIAbstractList *somSelf, Environment *ev,
  311.         CGrafPtr whichPort,
  312.         RgnHandle eraseRgn);
  313. typedef void   (* SOMLINK somTD_HIAbstractList_Invalidate)(HIAbstractList *somSelf, Environment *ev);
  314. typedef HIDrawingMode   (* SOMLINK somTD_HIAbstractList_GetDrawingMode)(HIAbstractList *somSelf, Environment *ev);
  315. typedef void   (* SOMLINK somTD_HIAbstractList_SetDrawingMode)(HIAbstractList *somSelf, Environment *ev,
  316.         HIDrawingMode drawingMode);
  317. typedef void   (* SOMLINK somTD_HIAbstractList_SetBackgroundPattern)(HIAbstractList *somSelf, Environment *ev,
  318.         PixPatHandle backgroundPattern);
  319. typedef PixPatHandle   (* SOMLINK somTD_HIAbstractList_GetBackgroundPattern)(HIAbstractList *somSelf, Environment *ev);
  320. typedef void   (* SOMLINK somTD_HIAbstractList_Cut)(HIAbstractList *somSelf, Environment *ev);
  321. typedef void   (* SOMLINK somTD_HIAbstractList_Copy)(HIAbstractList *somSelf, Environment *ev);
  322. typedef void   (* SOMLINK somTD_HIAbstractList_Paste)(HIAbstractList *somSelf, Environment *ev);
  323. typedef void   (* SOMLINK somTD_HIAbstractList_Clear)(HIAbstractList *somSelf, Environment *ev);
  324. typedef HIClipboardSupportFlags   (* SOMLINK somTD_HIAbstractList_GetClipboardSupportFlags)(HIAbstractList *somSelf, Environment *ev);
  325. typedef OSStatus   (* SOMLINK somTD_HIAbstractList_AddStateChangeCallback)(HIAbstractList *somSelf, Environment *ev,
  326.         HIStateChangeCallbackProcPtr changedStateCallback,
  327.         HIStateChangeCallbackRef* newCallbackRef);
  328. typedef OSStatus   (* SOMLINK somTD_HIAbstractList_RemoveStateChangeCallback)(HIAbstractList *somSelf, Environment *ev,
  329.         HIStateChangeCallbackRef callbackRefToRemove);
  330. typedef OSStatus   (* SOMLINK somTD_HIAbstractList_GetHIObjectFromRefLabel)(Environment *ev,
  331.         RefLabel* identifier,
  332.         ItemCount requestedObjects,
  333.         ItemCount* totalObjects,
  334.         HIObject** theObjects);
  335. typedef OSStatus   (* SOMLINK somTD_HIAbstractList_GetNewHIObject)(Environment *ev,
  336.         AESubDesc* objectInitializer,
  337.         HIObject** newObject);
  338. typedef OSStatus   (* SOMLINK somTD_HIAbstractList_GetNewHIObjectFromResource)(Environment *ev,
  339.         ResID objectInitializerResourceID,
  340.         HIObject** newObject);
  341. typedef void   (* SOMLINK somTD_HIAbstractList_DrawContent)(HIAbstractList *somSelf, Environment *ev,
  342.         CGrafPtr whichPort,
  343.         RgnHandle drawRgn);
  344. typedef void   (* SOMLINK somTD_HIAbstractList_EraseContent)(HIAbstractList *somSelf, Environment *ev,
  345.         CGrafPtr whichPort,
  346.         RgnHandle regionToErase);
  347. typedef void   (* SOMLINK somTD_HIAbstractList_TranslatePoint)(HIAbstractList *somSelf, Environment *ev,
  348.         HICoordinateSystem translateFrom,
  349.         HICoordinateSystem translateTo,
  350.         Point* sourcePoint,
  351.         Point* translatedPoint);
  352. typedef void   (* SOMLINK somTD_HIAbstractList_TranslateRect)(HIAbstractList *somSelf, Environment *ev,
  353.         HICoordinateSystem translateFrom,
  354.         HICoordinateSystem translateTo,
  355.         Rect* sourceRect,
  356.         Rect* translatedRect);
  357. typedef void   (* SOMLINK somTD_HIAbstractList_StateChanged)(HIAbstractList *somSelf, Environment *ev,
  358.         HIStateChangeCodeCreator selectorCreator,
  359.         HIStateChangeCode changedCode);
  360. typedef void   (* SOMLINK somTD_HIAbstractList_SetClipboardSupportFlags)(HIAbstractList *somSelf, Environment *ev,
  361.         HIClipboardSupportFlags flags);
  362. typedef OSStatus   (* SOMLINK somTD_HIAbstractList_Verify)(HIAbstractList *somSelf, Environment *ev);
  363. typedef void   (* SOMLINK somTD_HIAbstractList_somInit)(HIAbstractList *somSelf);
  364. typedef void   (* SOMLINK somTD_HIAbstractList_somUninit)(HIAbstractList *somSelf);
  365. typedef SOMObject*   (* SOMLINK somTD_HIAbstractList_somDuplicateReference)(HIAbstractList *somSelf);
  366. typedef boolean   (* SOMLINK somTD_HIAbstractList_somCompareReference)(HIAbstractList *somSelf,
  367.         SOMObject* anObject);
  368. typedef SOMObject*   (* SOMLINK somTD_HIAbstractList_somRelease)(HIAbstractList *somSelf);
  369. typedef void   (* SOMLINK somTD_HIAbstractList_somFree)(HIAbstractList *somSelf);
  370. typedef boolean   (* SOMLINK somTD_HIAbstractList_somCanDelete)(HIAbstractList *somSelf);
  371. typedef SOMClass*   (* SOMLINK somTD_HIAbstractList_somGetClass)(HIAbstractList *somSelf);
  372. typedef corbastring   (* SOMLINK somTD_HIAbstractList_somGetClassName)(HIAbstractList *somSelf);
  373. typedef long   (* SOMLINK somTD_HIAbstractList_somGetSize)(HIAbstractList *somSelf);
  374. typedef boolean   (* SOMLINK somTD_HIAbstractList_somIsA)(HIAbstractList *somSelf,
  375.         SOMClass* aClassObj);
  376. typedef boolean   (* SOMLINK somTD_HIAbstractList_somRespondsTo)(HIAbstractList *somSelf,
  377.         somId mId);
  378. typedef boolean   (* SOMLINK somTD_HIAbstractList_somIsInstanceOf)(HIAbstractList *somSelf,
  379.         SOMClass* aClassObj);
  380. typedef boolean   (* SOMLINK somTD_HIAbstractList_somDispatch)(HIAbstractList *somSelf,
  381.         somToken* retValue,
  382.         somId methodId,
  383.         va_list ap);
  384. typedef boolean   (* SOMLINK somTD_HIAbstractList_somClassDispatch)(HIAbstractList *somSelf,
  385.         SOMClass* clsObj,
  386.         somToken* retValue,
  387.         somId methodId,
  388.         va_list ap);
  389. typedef boolean   (* SOMLINK somTD_HIAbstractList_somCastObj)(HIAbstractList *somSelf,
  390.         SOMClass* cls);
  391. typedef boolean   (* SOMLINK somTD_HIAbstractList_somResetObj)(HIAbstractList *somSelf);
  392. typedef SOMObject*   (* SOMLINK somTD_HIAbstractList_somPrintSelf)(HIAbstractList *somSelf);
  393. typedef void   (* SOMLINK somTD_HIAbstractList_somDumpSelf)(HIAbstractList *somSelf,
  394.         long level);
  395. typedef void   (* SOMLINK somTD_HIAbstractList_somDumpSelfInt)(HIAbstractList *somSelf,
  396.         long level);
  397. }
  398.  
  399. #endif /* HIAbstractList_API */
  400.  
  401.  
  402. /*
  403.  * -- This emitter treats Method Tokens as Thunks by default.
  404.  * -- Use the sc modifier "nothunks" to change this default
  405.  */
  406. #undef somresolve_
  407. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  408.  
  409. /*
  410.  * -- The C++ Wrapper Class for HIAbstractList
  411.  */
  412. class HIAbstractList : public HIPanel
  413. {
  414. public:
  415.  
  416. // HIAbstractList::new registers use of the class object, and then uses somNew
  417. // to allocate memory and load the object method table pointer. 
  418. void *operator new(size_t size)
  419. {
  420.     SOM_IgnoreWarning(size);
  421.     // Allocate memory using the default allocator for HIAbstractList, and
  422.     // clear mem & set method table pointer, call basic initialization
  423.     return (void*) somNewObject(HIAbstractList);
  424. }
  425.  
  426. // HIAbstractList::delete uses the default deallocator for the object's class.
  427. void operator delete(void * obj)
  428. {
  429.     if (obj) {
  430.         SOM_Resolve(obj,SOMObject,somFree)
  431.            ( (SOMObject*) obj );
  432.     }
  433. }
  434.  
  435. /* method: InitAbstractList */
  436. OSStatus   InitAbstractList(Environment *ev,
  437.         RefLabel* identifier,
  438.         HIWindow* window,
  439.         Rect* bounds)
  440. {
  441.    return SOM_ResolveD(this,HIAbstractList,HIAbstractList,InitAbstractList)
  442.     (this,ev,identifier,window,bounds);
  443. }
  444.  
  445. /* method: AddItems */
  446. OSStatus   AddItems(Environment *ev,
  447.         HIItemIndex index,
  448.         UInt32 numItems)
  449. {
  450.    return SOM_ResolveD(this,HIAbstractList,HIAbstractList,AddItems)
  451.     (this,ev,index,numItems);
  452. }
  453.  
  454. /* method: DeleteItem */
  455. OSStatus   DeleteItem(Environment *ev,
  456.         HIItemIndex index)
  457. {
  458.    return SOM_ResolveD(this,HIAbstractList,HIAbstractList,DeleteItem)
  459.     (this,ev,index);
  460. }
  461.  
  462. /* method: SetItemImage */
  463. OSStatus   SetItemImage(Environment *ev,
  464.         HIItemIndex index,
  465.         ConstHIImageRef imageRef,
  466.         HIAdoptionFlags imageAdoptionFlags)
  467. {
  468.    return SOM_ResolveD(this,HIAbstractList,HIAbstractList,SetItemImage)
  469.     (this,ev,index,imageRef,imageAdoptionFlags);
  470. }
  471.  
  472. /* method: GetItemImage */
  473. OSStatus   GetItemImage(Environment *ev,
  474.         HIItemIndex index,
  475.         HIImageRef* imageRefPtr)
  476. {
  477.    return SOM_ResolveD(this,HIAbstractList,HIAbstractList,GetItemImage)
  478.     (this,ev,index,imageRefPtr);
  479. }
  480.  
  481. /* method: SetItemMark */
  482. OSStatus   SetItemMark(Environment *ev,
  483.         HIItemIndex index,
  484.         UInt16 markChar)
  485. {
  486.    return SOM_ResolveD(this,HIAbstractList,HIAbstractList,SetItemMark)
  487.     (this,ev,index,markChar);
  488. }
  489.  
  490. /* method: GetItemMark */
  491. UInt16   GetItemMark(Environment *ev,
  492.         HIItemIndex index)
  493. {
  494.    return SOM_ResolveD(this,HIAbstractList,HIAbstractList,GetItemMark)
  495.     (this,ev,index);
  496. }
  497.  
  498. /* method: SetItemIcon */
  499. OSStatus   SetItemIcon(Environment *ev,
  500.         HIItemIndex index,
  501.         Handle iconSuite)
  502. {
  503.    return SOM_ResolveD(this,HIAbstractList,HIAbstractList,SetItemIcon)
  504.     (this,ev,index,iconSuite);
  505. }
  506.  
  507. /* method: GetItemIcon */
  508. Handle   GetItemIcon(Environment *ev,
  509.         HIItemIndex index)
  510. {
  511.    return SOM_ResolveD(this,HIAbstractList,HIAbstractList,GetItemIcon)
  512.     (this,ev,index);
  513. }
  514.  
  515. /* method: SetItemChild */
  516. OSStatus   SetItemChild(Environment *ev,
  517.         HIItemIndex index,
  518.         HIAbstractList* child)
  519. {
  520.    return SOM_ResolveD(this,HIAbstractList,HIAbstractList,SetItemChild)
  521.     (this,ev,index,child);
  522. }
  523.  
  524. /* method: GetItemChild */
  525. OSStatus   GetItemChild(Environment *ev,
  526.         HIItemIndex index,
  527.         HIAbstractList** child)
  528. {
  529.    return SOM_ResolveD(this,HIAbstractList,HIAbstractList,GetItemChild)
  530.     (this,ev,index,child);
  531. }
  532.  
  533. /* method: SetItemEnabledState */
  534. OSStatus   SetItemEnabledState(Environment *ev,
  535.         HIItemIndex index,
  536.         HIItemState enableState)
  537. {
  538.    return SOM_ResolveD(this,HIAbstractList,HIAbstractList,SetItemEnabledState)
  539.     (this,ev,index,enableState);
  540. }
  541.  
  542. /* method: GetItemEnabledState */
  543. HIItemState   GetItemEnabledState(Environment *ev,
  544.         HIItemIndex index)
  545. {
  546.    return SOM_ResolveD(this,HIAbstractList,HIAbstractList,GetItemEnabledState)
  547.     (this,ev,index);
  548. }
  549.  
  550. /* method: SetItemAttributes */
  551. OSStatus   SetItemAttributes(Environment *ev,
  552.         HIItemIndex index,
  553.         HIItemAttributes attributes)
  554. {
  555.    return SOM_ResolveD(this,HIAbstractList,HIAbstractList,SetItemAttributes)
  556.     (this,ev,index,attributes);
  557. }
  558.  
  559. /* method: GetItemAttributes */
  560. HIItemAttributes   GetItemAttributes(Environment *ev,
  561.         HIItemIndex index)
  562. {
  563.    return SOM_ResolveD(this,HIAbstractList,HIAbstractList,GetItemAttributes)
  564.     (this,ev,index);
  565. }
  566.  
  567. /* method: SetItemRefLabel */
  568. OSStatus   SetItemRefLabel(Environment *ev,
  569.         HIItemIndex index,
  570.         RefLabel* identifier)
  571. {
  572.    return SOM_ResolveD(this,HIAbstractList,HIAbstractList,SetItemRefLabel)
  573.     (this,ev,index,identifier);
  574. }
  575.  
  576. /* method: GetItemRefLabel */
  577. OSStatus   GetItemRefLabel(Environment *ev,
  578.         HIItemIndex index,
  579.         RefLabel* identifier)
  580. {
  581.    return SOM_ResolveD(this,HIAbstractList,HIAbstractList,GetItemRefLabel)
  582.     (this,ev,index,identifier);
  583. }
  584.  
  585. /* method: GetItemCount */
  586. UInt32   GetItemCount(Environment *ev)
  587. {
  588.    return SOM_ResolveD(this,HIAbstractList,HIAbstractList,GetItemCount)
  589.     (this,ev);
  590. }
  591.  
  592. /* method: SelectItem */
  593. void   SelectItem(Environment *ev,
  594.         HIItemIndex index)
  595. {
  596.    SOM_ResolveD(this,HIAbstractList,HIAbstractList,SelectItem)
  597.     (this,ev,index);
  598. }
  599.  
  600. /* method: DeselectItem */
  601. void   DeselectItem(Environment *ev,
  602.         HIItemIndex index)
  603. {
  604.    SOM_ResolveD(this,HIAbstractList,HIAbstractList,DeselectItem)
  605.     (this,ev,index);
  606. }
  607.  
  608. /* method: GetSelectedItem */
  609. HIItemIndex   GetSelectedItem(Environment *ev)
  610. {
  611.    return SOM_ResolveD(this,HIAbstractList,HIAbstractList,GetSelectedItem)
  612.     (this,ev);
  613. }
  614.  
  615. /* method: AddItemCollectionItem */
  616. OSStatus   AddItemCollectionItem(Environment *ev,
  617.         HIItemIndex index,
  618.         CollectionTag tag,
  619.         UInt32 dataSize,
  620.         void* data)
  621. {
  622.    return SOM_ResolveD(this,HIAbstractList,HIAbstractList,AddItemCollectionItem)
  623.     (this,ev,index,tag,dataSize,data);
  624. }
  625.  
  626. /* method: GetItemCollectionItemData */
  627. OSStatus   GetItemCollectionItemData(Environment *ev,
  628.         HIItemIndex index,
  629.         CollectionTag tag,
  630.         UInt32 dataSizeIn,
  631.         UInt32* dataSizeOut,
  632.         void* data)
  633. {
  634.    return SOM_ResolveD(this,HIAbstractList,HIAbstractList,GetItemCollectionItemData)
  635.     (this,ev,index,tag,dataSizeIn,dataSizeOut,data);
  636. }
  637.  
  638. /* method: RemoveItemCollectionItem */
  639. OSStatus   RemoveItemCollectionItem(Environment *ev,
  640.         HIItemIndex index,
  641.         CollectionTag tag)
  642. {
  643.    return SOM_ResolveD(this,HIAbstractList,HIAbstractList,RemoveItemCollectionItem)
  644.     (this,ev,index,tag);
  645. }
  646.  
  647.  
  648. /*
  649.  * -- Inherited methods
  650.  */
  651. /* method: GetEmbeddingParent */
  652. HIEmbeddingPanel*   GetEmbeddingParent(Environment *ev)
  653. {
  654.    return SOM_ResolveD(this,HIAbstractList,HIPanel,GetEmbeddingParent)
  655.     (this,ev);
  656. }
  657.  
  658. /* method: InitPanel */
  659. OSStatus   InitPanel(Environment *ev,
  660.         RefLabel* identifier,
  661.         HIWindow* window,
  662.         Rect* bounds)
  663. {
  664.    return SOM_ResolveD(this,HIAbstractList,HIPanel,InitPanel)
  665.     (this,ev,identifier,window,bounds);
  666. }
  667.  
  668. /* method: RegisterInterestInAppleEvent */
  669. OSStatus   RegisterInterestInAppleEvent(Environment *ev,
  670.         AEHandlerTableRef table,
  671.         AEEventClass eventClass,
  672.         AEEventID eventID,
  673.         HIEventRoutingType eventRouting)
  674. {
  675.    return SOM_ResolveD(this,HIAbstractList,HIPanel,RegisterInterestInAppleEvent)
  676.     (this,ev,table,eventClass,eventID,eventRouting);
  677. }
  678.  
  679. /* method: HasValidContent */
  680. boolean   HasValidContent(Environment *ev)
  681. {
  682.    return SOM_ResolveD(this,HIAbstractList,HIPanel,HasValidContent)
  683.     (this,ev);
  684. }
  685.  
  686. /* method: GetDeepCollectionItemData */
  687. OSStatus   GetDeepCollectionItemData(Environment *ev,
  688.         CollectionTag tag,
  689.         SInt32 id,
  690.         ByteCount sizeAllowed,
  691.         ByteCount* sizeReturned,
  692.         void* itemData)
  693. {
  694.    return SOM_ResolveD(this,HIAbstractList,HIPanel,GetDeepCollectionItemData)
  695.     (this,ev,tag,id,sizeAllowed,sizeReturned,itemData);
  696. }
  697.  
  698. /* method: GetWindow */
  699. HIWindow*   GetWindow(Environment *ev)
  700. {
  701.    return SOM_ResolveD(this,HIAbstractList,HIObject,GetWindow)
  702.     (this,ev);
  703. }
  704.  
  705. /* method: GetPort */
  706. CGrafPtr   GetPort(Environment *ev)
  707. {
  708.    return SOM_ResolveD(this,HIAbstractList,HIObject,GetPort)
  709.     (this,ev);
  710. }
  711.  
  712. /* method: GetRefLabel */
  713. void   GetRefLabel(Environment *ev,
  714.         RefLabel* identifier)
  715. {
  716.    SOM_ResolveD(this,HIAbstractList,HIObject,GetRefLabel)
  717.     (this,ev,identifier);
  718. }
  719.  
  720. /* method: GetCollection */
  721. Collection   GetCollection(Environment *ev)
  722. {
  723.    return SOM_ResolveD(this,HIAbstractList,HIObject,GetCollection)
  724.     (this,ev);
  725. }
  726.  
  727. /* method: Init */
  728. OSStatus   Init(Environment *ev,
  729.         RefLabel* identifier,
  730.         Rect* boundingRect)
  731. {
  732.    return SOM_ResolveD(this,HIAbstractList,HIObject,Init)
  733.     (this,ev,identifier,boundingRect);
  734. }
  735.  
  736. /* method: Terminate */
  737. void   Terminate(Environment *ev)
  738. {
  739.    SOM_ResolveD(this,HIAbstractList,HIObject,Terminate)
  740.     (this,ev);
  741. }
  742.  
  743. /* method: Clone */
  744. HIObject*   Clone(Environment *ev)
  745. {
  746.    return SOM_ResolveD(this,HIAbstractList,HIObject,Clone)
  747.     (this,ev);
  748. }
  749.  
  750. /* method: Release */
  751. void   Release(Environment *ev)
  752. {
  753.    SOM_ResolveD(this,HIAbstractList,HIObject,Release)
  754.     (this,ev);
  755. }
  756.  
  757. /* method: GetOwnerCount */
  758. ItemCount   GetOwnerCount(Environment *ev)
  759. {
  760.    return SOM_ResolveD(this,HIAbstractList,HIObject,GetOwnerCount)
  761.     (this,ev);
  762. }
  763.  
  764. /* method: InitFromAERecord */
  765. OSStatus   InitFromAERecord(Environment *ev,
  766.         AESubDesc* baseInitializerData,
  767.         AESubDesc* initializerDataForClass,
  768.         HIAERecordDataFormat dataFormat)
  769. {
  770.    return SOM_ResolveD(this,HIAbstractList,HIObject,InitFromAERecord)
  771.     (this,ev,baseInitializerData,initializerDataForClass,dataFormat);
  772. }
  773.  
  774. /* method: WriteToAERecord */
  775. OSStatus   WriteToAERecord(Environment *ev,
  776.         AERecord* dataForSubclass,
  777.         AERecord* objectData,
  778.         HIAERecordDataFormat dataFormat)
  779. {
  780.    return SOM_ResolveD(this,HIAbstractList,HIObject,WriteToAERecord)
  781.     (this,ev,dataForSubclass,objectData,dataFormat);
  782. }
  783.  
  784. /* method: CalculateOptimalSize */
  785. void   CalculateOptimalSize(Environment *ev,
  786.         SInt16* optimalWidth,
  787.         SInt16* optimalHeight)
  788. {
  789.    SOM_ResolveD(this,HIAbstractList,HIObject,CalculateOptimalSize)
  790.     (this,ev,optimalWidth,optimalHeight);
  791. }
  792.  
  793. /* method: GetBoundingRect */
  794. void   GetBoundingRect(Environment *ev,
  795.         HICoordinateSystem coordinate,
  796.         Rect* boundingRect)
  797. {
  798.    SOM_ResolveD(this,HIAbstractList,HIObject,GetBoundingRect)
  799.     (this,ev,coordinate,boundingRect);
  800. }
  801.  
  802. /* method: SetBoundingRect */
  803. void   SetBoundingRect(Environment *ev,
  804.         HICoordinateSystem coordinate,
  805.         Rect* newBoundingRect)
  806. {
  807.    SOM_ResolveD(this,HIAbstractList,HIObject,SetBoundingRect)
  808.     (this,ev,coordinate,newBoundingRect);
  809. }
  810.  
  811. /* method: SetPosition */
  812. void   SetPosition(Environment *ev,
  813.         HICoordinateSystem coordinate,
  814.         Point* newPosition)
  815. {
  816.    SOM_ResolveD(this,HIAbstractList,HIObject,SetPosition)
  817.     (this,ev,coordinate,newPosition);
  818. }
  819.  
  820. /* method: SetSize */
  821. void   SetSize(Environment *ev,
  822.         SInt16 width,
  823.         SInt16 height)
  824. {
  825.    SOM_ResolveD(this,HIAbstractList,HIObject,SetSize)
  826.     (this,ev,width,height);
  827. }
  828.  
  829. /* method: GetUpdateRect */
  830. void   GetUpdateRect(Environment *ev,
  831.         HICoordinateSystem coordinate,
  832.         Rect* updateRect)
  833. {
  834.    SOM_ResolveD(this,HIAbstractList,HIObject,GetUpdateRect)
  835.     (this,ev,coordinate,updateRect);
  836. }
  837.  
  838. /* method: Enable */
  839. void   Enable(Environment *ev)
  840. {
  841.    SOM_ResolveD(this,HIAbstractList,HIObject,Enable)
  842.     (this,ev);
  843. }
  844.  
  845. /* method: Disable */
  846. void   Disable(Environment *ev)
  847. {
  848.    SOM_ResolveD(this,HIAbstractList,HIObject,Disable)
  849.     (this,ev);
  850. }
  851.  
  852. /* method: IsEnabled */
  853. boolean   IsEnabled(Environment *ev)
  854. {
  855.    return SOM_ResolveD(this,HIAbstractList,HIObject,IsEnabled)
  856.     (this,ev);
  857. }
  858.  
  859. /* method: Show */
  860. void   Show(Environment *ev)
  861. {
  862.    SOM_ResolveD(this,HIAbstractList,HIObject,Show)
  863.     (this,ev);
  864. }
  865.  
  866. /* method: Hide */
  867. void   Hide(Environment *ev)
  868. {
  869.    SOM_ResolveD(this,HIAbstractList,HIObject,Hide)
  870.     (this,ev);
  871. }
  872.  
  873. /* method: IsVisible */
  874. boolean   IsVisible(Environment *ev)
  875. {
  876.    return SOM_ResolveD(this,HIAbstractList,HIObject,IsVisible)
  877.     (this,ev);
  878. }
  879.  
  880. /* method: HandleAppleEvent */
  881. OSStatus   HandleAppleEvent(Environment *ev,
  882.         AEEventClass eventClass,
  883.         AEEventID eventID,
  884.         AppleEvent* theEvent,
  885.         AppleEvent* reply,
  886.         AEHandlerTableRef handlerTableRef)
  887. {
  888.    return SOM_ResolveD(this,HIAbstractList,HIObject,HandleAppleEvent)
  889.     (this,ev,eventClass,eventID,theEvent,reply,handlerTableRef);
  890. }
  891.  
  892. /* method: HandleActivate */
  893. OSStatus   HandleActivate(Environment *ev,
  894.         AppleEvent* theEvent,
  895.         AppleEvent* reply,
  896.         AEHandlerTableRef handlerTableRef)
  897. {
  898.    return SOM_ResolveD(this,HIAbstractList,HIObject,HandleActivate)
  899.     (this,ev,theEvent,reply,handlerTableRef);
  900. }
  901.  
  902. /* method: HandleDeactivate */
  903. OSStatus   HandleDeactivate(Environment *ev,
  904.         AppleEvent* theEvent,
  905.         AppleEvent* reply,
  906.         AEHandlerTableRef handlerTableRef)
  907. {
  908.    return SOM_ResolveD(this,HIAbstractList,HIObject,HandleDeactivate)
  909.     (this,ev,theEvent,reply,handlerTableRef);
  910. }
  911.  
  912. /* method: HandleNavigation */
  913. OSStatus   HandleNavigation(Environment *ev,
  914.         SInt8 key,
  915.         SInt8 keyCode,
  916.         EventModifiers modifiers,
  917.         AppleEvent* theEvent,
  918.         AppleEvent* reply,
  919.         AEHandlerTableRef handlerTableRef)
  920. {
  921.    return SOM_ResolveD(this,HIAbstractList,HIObject,HandleNavigation)
  922.     (this,ev,key,keyCode,modifiers,theEvent,reply,handlerTableRef);
  923. }
  924.  
  925. /* method: HandleMouseDownInContent */
  926. OSStatus   HandleMouseDownInContent(Environment *ev,
  927.         Point* portLocalWhere,
  928.         EventModifiers modifiers,
  929.         AppleEvent* theEvent,
  930.         AppleEvent* reply,
  931.         AEHandlerTableRef handlerTableRef)
  932. {
  933.    return SOM_ResolveD(this,HIAbstractList,HIObject,HandleMouseDownInContent)
  934.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  935. }
  936.  
  937. /* method: HandleMouseMovedInContent */
  938. OSStatus   HandleMouseMovedInContent(Environment *ev,
  939.         Point* portLocalWhere,
  940.         EventModifiers modifiers,
  941.         AppleEvent* theEvent,
  942.         AppleEvent* reply,
  943.         AEHandlerTableRef handlerTableRef)
  944. {
  945.    return SOM_ResolveD(this,HIAbstractList,HIObject,HandleMouseMovedInContent)
  946.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  947. }
  948.  
  949. /* method: HandleMouseStoppedMovingInContent */
  950. OSStatus   HandleMouseStoppedMovingInContent(Environment *ev,
  951.         Point* portLocalWhere,
  952.         EventModifiers modifiers,
  953.         AppleEvent* theEvent,
  954.         AppleEvent* reply,
  955.         AEHandlerTableRef handlerTableRef)
  956. {
  957.    return SOM_ResolveD(this,HIAbstractList,HIObject,HandleMouseStoppedMovingInContent)
  958.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  959. }
  960.  
  961. /* method: HandleMouseUpInContent */
  962. OSStatus   HandleMouseUpInContent(Environment *ev,
  963.         Point* portLocalWhere,
  964.         EventModifiers modifiers,
  965.         AppleEvent* theEvent,
  966.         AppleEvent* reply,
  967.         AEHandlerTableRef handlerTableRef)
  968. {
  969.    return SOM_ResolveD(this,HIAbstractList,HIObject,HandleMouseUpInContent)
  970.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  971. }
  972.  
  973. /* method: TakeUserInputFocus */
  974. void   TakeUserInputFocus(Environment *ev)
  975. {
  976.    SOM_ResolveD(this,HIAbstractList,HIObject,TakeUserInputFocus)
  977.     (this,ev);
  978. }
  979.  
  980. /* method: ReleaseUserInputFocus */
  981. void   ReleaseUserInputFocus(Environment *ev)
  982. {
  983.    SOM_ResolveD(this,HIAbstractList,HIObject,ReleaseUserInputFocus)
  984.     (this,ev);
  985. }
  986.  
  987. /* method: HasUserInputFocus */
  988. boolean   HasUserInputFocus(Environment *ev)
  989. {
  990.    return SOM_ResolveD(this,HIAbstractList,HIObject,HasUserInputFocus)
  991.     (this,ev);
  992. }
  993.  
  994. /* method: CanReleaseUserInputFocus */
  995. boolean   CanReleaseUserInputFocus(Environment *ev)
  996. {
  997.    return SOM_ResolveD(this,HIAbstractList,HIObject,CanReleaseUserInputFocus)
  998.     (this,ev);
  999. }
  1000.  
  1001. /* method: SetUserInputFocusFlags */
  1002. void   SetUserInputFocusFlags(Environment *ev,
  1003.         HIUserInputFocusFlags flags)
  1004. {
  1005.    SOM_ResolveD(this,HIAbstractList,HIObject,SetUserInputFocusFlags)
  1006.     (this,ev,flags);
  1007. }
  1008.  
  1009. /* method: GetUserInputFocusFlags */
  1010. HIUserInputFocusFlags   GetUserInputFocusFlags(Environment *ev)
  1011. {
  1012.    return SOM_ResolveD(this,HIAbstractList,HIObject,GetUserInputFocusFlags)
  1013.     (this,ev);
  1014. }
  1015.  
  1016. /* method: SetTitle */
  1017. OSStatus   SetTitle(Environment *ev,
  1018.         ConstHIImageRef title,
  1019.         HIAdoptionFlags disposalAdoptionFlags)
  1020. {
  1021.    return SOM_ResolveD(this,HIAbstractList,HIObject,SetTitle)
  1022.     (this,ev,title,disposalAdoptionFlags);
  1023. }
  1024.  
  1025. /* method: GetTitle */
  1026. OSStatus   GetTitle(Environment *ev,
  1027.         HIImageRef* title)
  1028. {
  1029.    return SOM_ResolveD(this,HIAbstractList,HIObject,GetTitle)
  1030.     (this,ev,title);
  1031. }
  1032.  
  1033. /* method: Draw */
  1034. void   Draw(Environment *ev,
  1035.         CGrafPtr whichPort,
  1036.         RgnHandle drawRgn)
  1037. {
  1038.    SOM_ResolveD(this,HIAbstractList,HIObject,Draw)
  1039.     (this,ev,whichPort,drawRgn);
  1040. }
  1041.  
  1042. /* method: Erase */
  1043. void   Erase(Environment *ev,
  1044.         CGrafPtr whichPort,
  1045.         RgnHandle eraseRgn)
  1046. {
  1047.    SOM_ResolveD(this,HIAbstractList,HIObject,Erase)
  1048.     (this,ev,whichPort,eraseRgn);
  1049. }
  1050.  
  1051. /* method: Invalidate */
  1052. void   Invalidate(Environment *ev)
  1053. {
  1054.    SOM_ResolveD(this,HIAbstractList,HIObject,Invalidate)
  1055.     (this,ev);
  1056. }
  1057.  
  1058. /* method: GetDrawingMode */
  1059. HIDrawingMode   GetDrawingMode(Environment *ev)
  1060. {
  1061.    return SOM_ResolveD(this,HIAbstractList,HIObject,GetDrawingMode)
  1062.     (this,ev);
  1063. }
  1064.  
  1065. /* method: SetDrawingMode */
  1066. void   SetDrawingMode(Environment *ev,
  1067.         HIDrawingMode drawingMode)
  1068. {
  1069.    SOM_ResolveD(this,HIAbstractList,HIObject,SetDrawingMode)
  1070.     (this,ev,drawingMode);
  1071. }
  1072.  
  1073. /* method: SetBackgroundPattern */
  1074. void   SetBackgroundPattern(Environment *ev,
  1075.         PixPatHandle backgroundPattern)
  1076. {
  1077.    SOM_ResolveD(this,HIAbstractList,HIObject,SetBackgroundPattern)
  1078.     (this,ev,backgroundPattern);
  1079. }
  1080.  
  1081. /* method: GetBackgroundPattern */
  1082. PixPatHandle   GetBackgroundPattern(Environment *ev)
  1083. {
  1084.    return SOM_ResolveD(this,HIAbstractList,HIObject,GetBackgroundPattern)
  1085.     (this,ev);
  1086. }
  1087.  
  1088. /* method: Cut */
  1089. void   Cut(Environment *ev)
  1090. {
  1091.    SOM_ResolveD(this,HIAbstractList,HIObject,Cut)
  1092.     (this,ev);
  1093. }
  1094.  
  1095. /* method: Copy */
  1096. void   Copy(Environment *ev)
  1097. {
  1098.    SOM_ResolveD(this,HIAbstractList,HIObject,Copy)
  1099.     (this,ev);
  1100. }
  1101.  
  1102. /* method: Paste */
  1103. void   Paste(Environment *ev)
  1104. {
  1105.    SOM_ResolveD(this,HIAbstractList,HIObject,Paste)
  1106.     (this,ev);
  1107. }
  1108.  
  1109. /* method: Clear */
  1110. void   Clear(Environment *ev)
  1111. {
  1112.    SOM_ResolveD(this,HIAbstractList,HIObject,Clear)
  1113.     (this,ev);
  1114. }
  1115.  
  1116. /* method: GetClipboardSupportFlags */
  1117. HIClipboardSupportFlags   GetClipboardSupportFlags(Environment *ev)
  1118. {
  1119.    return SOM_ResolveD(this,HIAbstractList,HIObject,GetClipboardSupportFlags)
  1120.     (this,ev);
  1121. }
  1122.  
  1123. /* method: AddStateChangeCallback */
  1124. OSStatus   AddStateChangeCallback(Environment *ev,
  1125.         HIStateChangeCallbackProcPtr changedStateCallback,
  1126.         HIStateChangeCallbackRef* newCallbackRef)
  1127. {
  1128.    return SOM_ResolveD(this,HIAbstractList,HIObject,AddStateChangeCallback)
  1129.     (this,ev,changedStateCallback,newCallbackRef);
  1130. }
  1131.  
  1132. /* method: RemoveStateChangeCallback */
  1133. OSStatus   RemoveStateChangeCallback(Environment *ev,
  1134.         HIStateChangeCallbackRef callbackRefToRemove)
  1135. {
  1136.    return SOM_ResolveD(this,HIAbstractList,HIObject,RemoveStateChangeCallback)
  1137.     (this,ev,callbackRefToRemove);
  1138. }
  1139.  
  1140. /* noself procedure: GetHIObjectFromRefLabel */
  1141. static OSStatus   GetHIObjectFromRefLabel(Environment *ev,
  1142.         RefLabel* identifier,
  1143.         ItemCount requestedObjects,
  1144.         ItemCount* totalObjects,
  1145.         HIObject** theObjects)
  1146. {
  1147. return ((somTD_HIAbstractList_GetHIObjectFromRefLabel)HIObjectClassData.GetHIObjectFromRefLabel)
  1148.     (ev,identifier,requestedObjects,totalObjects,theObjects);
  1149. }
  1150.  
  1151. /* noself procedure: GetNewHIObject */
  1152. static OSStatus   GetNewHIObject(Environment *ev,
  1153.         AESubDesc* objectInitializer,
  1154.         HIObject** newObject)
  1155. {
  1156. return ((somTD_HIAbstractList_GetNewHIObject)HIObjectClassData.GetNewHIObject)
  1157.     (ev,objectInitializer,newObject);
  1158. }
  1159.  
  1160. /* noself procedure: GetNewHIObjectFromResource */
  1161. static OSStatus   GetNewHIObjectFromResource(Environment *ev,
  1162.         ResID objectInitializerResourceID,
  1163.         HIObject** newObject)
  1164. {
  1165. return ((somTD_HIAbstractList_GetNewHIObjectFromResource)HIObjectClassData.GetNewHIObjectFromResource)
  1166.     (ev,objectInitializerResourceID,newObject);
  1167. }
  1168.  
  1169. /* method: DrawContent */
  1170. void   DrawContent(Environment *ev,
  1171.         CGrafPtr whichPort,
  1172.         RgnHandle drawRgn)
  1173. {
  1174.    SOM_ResolveD(this,HIAbstractList,HIObject,DrawContent)
  1175.     (this,ev,whichPort,drawRgn);
  1176. }
  1177.  
  1178. /* method: EraseContent */
  1179. void   EraseContent(Environment *ev,
  1180.         CGrafPtr whichPort,
  1181.         RgnHandle regionToErase)
  1182. {
  1183.    SOM_ResolveD(this,HIAbstractList,HIObject,EraseContent)
  1184.     (this,ev,whichPort,regionToErase);
  1185. }
  1186.  
  1187. /* method: TranslatePoint */
  1188. void   TranslatePoint(Environment *ev,
  1189.         HICoordinateSystem translateFrom,
  1190.         HICoordinateSystem translateTo,
  1191.         Point* sourcePoint,
  1192.         Point* translatedPoint)
  1193. {
  1194.    SOM_ResolveD(this,HIAbstractList,HIObject,TranslatePoint)
  1195.     (this,ev,translateFrom,translateTo,sourcePoint,translatedPoint);
  1196. }
  1197.  
  1198. /* method: TranslateRect */
  1199. void   TranslateRect(Environment *ev,
  1200.         HICoordinateSystem translateFrom,
  1201.         HICoordinateSystem translateTo,
  1202.         Rect* sourceRect,
  1203.         Rect* translatedRect)
  1204. {
  1205.    SOM_ResolveD(this,HIAbstractList,HIObject,TranslateRect)
  1206.     (this,ev,translateFrom,translateTo,sourceRect,translatedRect);
  1207. }
  1208.  
  1209. /* method: StateChanged */
  1210. void   StateChanged(Environment *ev,
  1211.         HIStateChangeCodeCreator selectorCreator,
  1212.         HIStateChangeCode changedCode)
  1213. {
  1214.    SOM_ResolveD(this,HIAbstractList,HIObject,StateChanged)
  1215.     (this,ev,selectorCreator,changedCode);
  1216. }
  1217.  
  1218. /* method: SetClipboardSupportFlags */
  1219. void   SetClipboardSupportFlags(Environment *ev,
  1220.         HIClipboardSupportFlags flags)
  1221. {
  1222.    SOM_ResolveD(this,HIAbstractList,HIObject,SetClipboardSupportFlags)
  1223.     (this,ev,flags);
  1224. }
  1225.  
  1226. /* method: Verify */
  1227. OSStatus   Verify(Environment *ev)
  1228. {
  1229.    return SOM_ResolveD(this,HIAbstractList,HIObject,Verify)
  1230.     (this,ev);
  1231. }
  1232.  
  1233. /* method: somInit */
  1234. void   somInit()
  1235. {
  1236.    SOM_ResolveD(this,HIAbstractList,SOMObject,somInit)
  1237.     (this);
  1238. }
  1239.  
  1240. /* method: somUninit */
  1241. void   somUninit()
  1242. {
  1243.    SOM_ResolveD(this,HIAbstractList,SOMObject,somUninit)
  1244.     (this);
  1245. }
  1246.  
  1247. /* method: somDuplicateReference */
  1248. SOMObject*   somDuplicateReference()
  1249. {
  1250.    return SOM_ResolveD(this,HIAbstractList,SOMObject,somDuplicateReference)
  1251.     (this);
  1252. }
  1253.  
  1254. /* method: somCompareReference */
  1255. boolean   somCompareReference(SOMObject* anObject)
  1256. {
  1257.    return SOM_ResolveD(this,HIAbstractList,SOMObject,somCompareReference)
  1258.     (this,anObject);
  1259. }
  1260.  
  1261. /* method: somRelease */
  1262. SOMObject*   somRelease()
  1263. {
  1264.    return SOM_ResolveD(this,HIAbstractList,SOMObject,somRelease)
  1265.     (this);
  1266. }
  1267.  
  1268. /* method: somFree */
  1269. void   somFree()
  1270. {
  1271.    SOM_ResolveD(this,HIAbstractList,SOMObject,somFree)
  1272.     (this);
  1273. }
  1274.  
  1275. /* method: somCanDelete */
  1276. boolean   somCanDelete()
  1277. {
  1278.    return SOM_ResolveD(this,HIAbstractList,SOMObject,somCanDelete)
  1279.     (this);
  1280. }
  1281.  
  1282. /* method: somGetClass */
  1283. SOMClass*   somGetClass()
  1284. {
  1285.    return SOM_ResolveD(this,HIAbstractList,SOMObject,somGetClass)
  1286.     (this);
  1287. }
  1288.  
  1289. /* method: somGetClassName */
  1290. corbastring   somGetClassName()
  1291. {
  1292.    return SOM_ResolveD(this,HIAbstractList,SOMObject,somGetClassName)
  1293.     (this);
  1294. }
  1295.  
  1296. /* method: somGetSize */
  1297. long   somGetSize()
  1298. {
  1299.    return SOM_ResolveD(this,HIAbstractList,SOMObject,somGetSize)
  1300.     (this);
  1301. }
  1302.  
  1303. /* method: somIsA */
  1304. boolean   somIsA(SOMClass* aClassObj)
  1305. {
  1306.    return SOM_ResolveD(this,HIAbstractList,SOMObject,somIsA)
  1307.     (this,aClassObj);
  1308. }
  1309.  
  1310. /* method: somRespondsTo */
  1311. boolean   somRespondsTo(somId mId)
  1312. {
  1313.    return SOM_ResolveD(this,HIAbstractList,SOMObject,somRespondsTo)
  1314.     (this,mId);
  1315. }
  1316.  
  1317. /* method: somIsInstanceOf */
  1318. boolean   somIsInstanceOf(SOMClass* aClassObj)
  1319. {
  1320.    return SOM_ResolveD(this,HIAbstractList,SOMObject,somIsInstanceOf)
  1321.     (this,aClassObj);
  1322. }
  1323.  
  1324. /* va_list method: somDispatch */
  1325. /* the va_list invocation form */
  1326. boolean   HIAbstractList_somDispatch(somToken* retValue,
  1327.         somId methodId,
  1328.         va_list ap)
  1329. {
  1330.    return SOM_ResolveD(this,HIAbstractList,SOMObject,somDispatch)
  1331.     (this,retValue,methodId,ap);
  1332. }
  1333.  
  1334. /* the varargs invocation form */
  1335. boolean   somDispatch(somToken* retValue,
  1336.         somId methodId,
  1337.         ...)
  1338. {
  1339.    va_list ap;
  1340.    va_start(ap, methodId);
  1341.       boolean __somResult = 
  1342.       (boolean) SOM_ResolveD(this,HIAbstractList,SOMObject,somDispatch)
  1343.     (this,retValue,methodId,ap);
  1344.    va_end(ap);
  1345.    return __somResult;
  1346. }
  1347.  
  1348. /* va_list method: somClassDispatch */
  1349. /* the va_list invocation form */
  1350. boolean   HIAbstractList_somClassDispatch(SOMClass* clsObj,
  1351.         somToken* retValue,
  1352.         somId methodId,
  1353.         va_list ap)
  1354. {
  1355.    return SOM_ResolveD(this,HIAbstractList,SOMObject,somClassDispatch)
  1356.     (this,clsObj,retValue,methodId,ap);
  1357. }
  1358.  
  1359. /* the varargs invocation form */
  1360. boolean   somClassDispatch(SOMClass* clsObj,
  1361.         somToken* retValue,
  1362.         somId methodId,
  1363.         ...)
  1364. {
  1365.    va_list ap;
  1366.    va_start(ap, methodId);
  1367.       boolean __somResult = 
  1368.       (boolean) SOM_ResolveD(this,HIAbstractList,SOMObject,somClassDispatch)
  1369.     (this,clsObj,retValue,methodId,ap);
  1370.    va_end(ap);
  1371.    return __somResult;
  1372. }
  1373.  
  1374. /* method: somCastObj */
  1375. boolean   somCastObj(SOMClass* cls)
  1376. {
  1377.    return SOM_ResolveD(this,HIAbstractList,SOMObject,somCastObj)
  1378.     (this,cls);
  1379. }
  1380.  
  1381. /* method: somResetObj */
  1382. boolean   somResetObj()
  1383. {
  1384.    return SOM_ResolveD(this,HIAbstractList,SOMObject,somResetObj)
  1385.     (this);
  1386. }
  1387.  
  1388. /* method: somPrintSelf */
  1389. SOMObject*   somPrintSelf()
  1390. {
  1391.    return SOM_ResolveD(this,HIAbstractList,SOMObject,somPrintSelf)
  1392.     (this);
  1393. }
  1394.  
  1395. /* method: somDumpSelf */
  1396. void   somDumpSelf(long level)
  1397. {
  1398.    SOM_ResolveD(this,HIAbstractList,SOMObject,somDumpSelf)
  1399.     (this,level);
  1400. }
  1401.  
  1402. /* method: somDumpSelfInt */
  1403. void   somDumpSelfInt(long level)
  1404. {
  1405.    SOM_ResolveD(this,HIAbstractList,SOMObject,somDumpSelfInt)
  1406.     (this,level);
  1407. }
  1408.  
  1409. };   /* HIAbstractList */
  1410.  
  1411.  
  1412.  
  1413. #endif       /* SOM_HIAbstractList_xh */
  1414.  
  1415. #ifndef SOM_HIList_xh
  1416. #define SOM_HIList_xh
  1417.  
  1418. class HIList;
  1419.  
  1420. #define HIList_MajorVersion 0
  1421. #define HIList_MinorVersion 0
  1422.  
  1423. /*
  1424.  * Passthru lines: File: "C.xh", "before"
  1425.  */
  1426. #include <HIItemStorage.xh>
  1427.  
  1428. /* C++ SOM defs */
  1429. #include <somcls.xh>
  1430. #include <somcm.xh>
  1431.  
  1432. /* C++ parent defs */
  1433. #ifndef SOM_HIAbstractList_xh
  1434. #include <HILists.xh>
  1435. #endif
  1436.  
  1437. #ifndef HIList_API
  1438. #define HIList_API
  1439. /*
  1440.  * -- The Class API
  1441.  */
  1442.  
  1443. /*
  1444.  * Start of user-defined types:
  1445.  */
  1446.  
  1447. /*
  1448.  * End of user-defined types.
  1449.  */
  1450.  
  1451. #ifdef OLDIBMSOMAPISUPPORT
  1452. #define HIListCClassData HIListClassData
  1453. #define HIListNewClass(major,minor) somNewVersionedClassReference(HIList,major,minor)
  1454. #endif
  1455.  
  1456. /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
  1457. #define HIListMetaClass SOMClass
  1458.  
  1459. #if PRAGMA_ALIGN_SUPPORTED
  1460. #  pragma options align=power
  1461. #endif
  1462.  
  1463. /* The API to the HIList class object, and the methods it introduces. */
  1464. SOMEXTERN struct HIListClassDataStructure {
  1465. #ifdef OLDIBMSOMAPISUPPORT
  1466.     SOMClass            *classObject;    /* always zero, use somNewClassReference instead */
  1467. #else
  1468.     long zero;
  1469. #endif
  1470.     somStaticClassInfo *sci;
  1471.     somDToken        instanceDataToken;
  1472.     long reserved [3];
  1473.     somMToken InitList;
  1474. } SOMDLINK HIListClassData;
  1475.  
  1476. #if PRAGMA_ALIGN_SUPPORTED
  1477. #  pragma options align=reset
  1478. #endif
  1479.  
  1480. #if !defined(HIList_Class_Source) && !defined(SOM_Module_hilists_Source)
  1481. #if PRAGMA_IMPORT_SUPPORTED
  1482. #pragma import list HIListClassData
  1483. #endif
  1484. #endif
  1485.  
  1486.  
  1487. /*
  1488.  * -- Typedefs for HIList Method Procedures
  1489.  */
  1490. SOMEXTERN {
  1491. typedef OSStatus   (* SOMLINK somTD_HIList_InitList)(HIList *somSelf, Environment *ev,
  1492.         RefLabel* identifier,
  1493.         HIWindow* window,
  1494.         Rect* bounds,
  1495.         HIItemStorage* itemStorage);
  1496.  
  1497. /*
  1498.  * -- Typedefs for Inherited Methods
  1499.  */
  1500. typedef OSStatus   (* SOMLINK somTD_HIList_InitAbstractList)(HIList *somSelf, Environment *ev,
  1501.         RefLabel* identifier,
  1502.         HIWindow* window,
  1503.         Rect* bounds);
  1504. typedef OSStatus   (* SOMLINK somTD_HIList_AddItems)(HIList *somSelf, Environment *ev,
  1505.         HIItemIndex index,
  1506.         UInt32 numItems);
  1507. typedef OSStatus   (* SOMLINK somTD_HIList_DeleteItem)(HIList *somSelf, Environment *ev,
  1508.         HIItemIndex index);
  1509. typedef OSStatus   (* SOMLINK somTD_HIList_SetItemImage)(HIList *somSelf, Environment *ev,
  1510.         HIItemIndex index,
  1511.         ConstHIImageRef imageRef,
  1512.         HIAdoptionFlags imageAdoptionFlags);
  1513. typedef OSStatus   (* SOMLINK somTD_HIList_GetItemImage)(HIList *somSelf, Environment *ev,
  1514.         HIItemIndex index,
  1515.         HIImageRef* imageRefPtr);
  1516. typedef OSStatus   (* SOMLINK somTD_HIList_SetItemMark)(HIList *somSelf, Environment *ev,
  1517.         HIItemIndex index,
  1518.         UInt16 markChar);
  1519. typedef UInt16   (* SOMLINK somTD_HIList_GetItemMark)(HIList *somSelf, Environment *ev,
  1520.         HIItemIndex index);
  1521. typedef OSStatus   (* SOMLINK somTD_HIList_SetItemIcon)(HIList *somSelf, Environment *ev,
  1522.         HIItemIndex index,
  1523.         Handle iconSuite);
  1524. typedef Handle   (* SOMLINK somTD_HIList_GetItemIcon)(HIList *somSelf, Environment *ev,
  1525.         HIItemIndex index);
  1526. typedef OSStatus   (* SOMLINK somTD_HIList_SetItemChild)(HIList *somSelf, Environment *ev,
  1527.         HIItemIndex index,
  1528.         HIAbstractList* child);
  1529. typedef OSStatus   (* SOMLINK somTD_HIList_GetItemChild)(HIList *somSelf, Environment *ev,
  1530.         HIItemIndex index,
  1531.         HIAbstractList** child);
  1532. typedef OSStatus   (* SOMLINK somTD_HIList_SetItemEnabledState)(HIList *somSelf, Environment *ev,
  1533.         HIItemIndex index,
  1534.         HIItemState enableState);
  1535. typedef HIItemState   (* SOMLINK somTD_HIList_GetItemEnabledState)(HIList *somSelf, Environment *ev,
  1536.         HIItemIndex index);
  1537. typedef OSStatus   (* SOMLINK somTD_HIList_SetItemAttributes)(HIList *somSelf, Environment *ev,
  1538.         HIItemIndex index,
  1539.         HIItemAttributes attributes);
  1540. typedef HIItemAttributes   (* SOMLINK somTD_HIList_GetItemAttributes)(HIList *somSelf, Environment *ev,
  1541.         HIItemIndex index);
  1542. typedef OSStatus   (* SOMLINK somTD_HIList_SetItemRefLabel)(HIList *somSelf, Environment *ev,
  1543.         HIItemIndex index,
  1544.         RefLabel* identifier);
  1545. typedef OSStatus   (* SOMLINK somTD_HIList_GetItemRefLabel)(HIList *somSelf, Environment *ev,
  1546.         HIItemIndex index,
  1547.         RefLabel* identifier);
  1548. typedef UInt32   (* SOMLINK somTD_HIList_GetItemCount)(HIList *somSelf, Environment *ev);
  1549. typedef void   (* SOMLINK somTD_HIList_SelectItem)(HIList *somSelf, Environment *ev,
  1550.         HIItemIndex index);
  1551. typedef void   (* SOMLINK somTD_HIList_DeselectItem)(HIList *somSelf, Environment *ev,
  1552.         HIItemIndex index);
  1553. typedef HIItemIndex   (* SOMLINK somTD_HIList_GetSelectedItem)(HIList *somSelf, Environment *ev);
  1554. typedef OSStatus   (* SOMLINK somTD_HIList_AddItemCollectionItem)(HIList *somSelf, Environment *ev,
  1555.         HIItemIndex index,
  1556.         CollectionTag tag,
  1557.         UInt32 dataSize,
  1558.         void* data);
  1559. typedef OSStatus   (* SOMLINK somTD_HIList_GetItemCollectionItemData)(HIList *somSelf, Environment *ev,
  1560.         HIItemIndex index,
  1561.         CollectionTag tag,
  1562.         UInt32 dataSizeIn,
  1563.         UInt32* dataSizeOut,
  1564.         void* data);
  1565. typedef OSStatus   (* SOMLINK somTD_HIList_RemoveItemCollectionItem)(HIList *somSelf, Environment *ev,
  1566.         HIItemIndex index,
  1567.         CollectionTag tag);
  1568. typedef HIEmbeddingPanel*   (* SOMLINK somTD_HIList_GetEmbeddingParent)(HIList *somSelf, Environment *ev);
  1569. typedef OSStatus   (* SOMLINK somTD_HIList_InitPanel)(HIList *somSelf, Environment *ev,
  1570.         RefLabel* identifier,
  1571.         HIWindow* window,
  1572.         Rect* bounds);
  1573. typedef OSStatus   (* SOMLINK somTD_HIList_RegisterInterestInAppleEvent)(HIList *somSelf, Environment *ev,
  1574.         AEHandlerTableRef table,
  1575.         AEEventClass eventClass,
  1576.         AEEventID eventID,
  1577.         HIEventRoutingType eventRouting);
  1578. typedef boolean   (* SOMLINK somTD_HIList_HasValidContent)(HIList *somSelf, Environment *ev);
  1579. typedef OSStatus   (* SOMLINK somTD_HIList_GetDeepCollectionItemData)(HIList *somSelf, Environment *ev,
  1580.         CollectionTag tag,
  1581.         SInt32 id,
  1582.         ByteCount sizeAllowed,
  1583.         ByteCount* sizeReturned,
  1584.         void* itemData);
  1585. typedef HIWindow*   (* SOMLINK somTD_HIList_GetWindow)(HIList *somSelf, Environment *ev);
  1586. typedef CGrafPtr   (* SOMLINK somTD_HIList_GetPort)(HIList *somSelf, Environment *ev);
  1587. typedef void   (* SOMLINK somTD_HIList_GetRefLabel)(HIList *somSelf, Environment *ev,
  1588.         RefLabel* identifier);
  1589. typedef Collection   (* SOMLINK somTD_HIList_GetCollection)(HIList *somSelf, Environment *ev);
  1590. typedef OSStatus   (* SOMLINK somTD_HIList_Init)(HIList *somSelf, Environment *ev,
  1591.         RefLabel* identifier,
  1592.         Rect* boundingRect);
  1593. typedef void   (* SOMLINK somTD_HIList_Terminate)(HIList *somSelf, Environment *ev);
  1594. typedef HIObject*   (* SOMLINK somTD_HIList_Clone)(HIList *somSelf, Environment *ev);
  1595. typedef void   (* SOMLINK somTD_HIList_Release)(HIList *somSelf, Environment *ev);
  1596. typedef ItemCount   (* SOMLINK somTD_HIList_GetOwnerCount)(HIList *somSelf, Environment *ev);
  1597. typedef OSStatus   (* SOMLINK somTD_HIList_InitFromAERecord)(HIList *somSelf, Environment *ev,
  1598.         AESubDesc* baseInitializerData,
  1599.         AESubDesc* initializerDataForClass,
  1600.         HIAERecordDataFormat dataFormat);
  1601. typedef OSStatus   (* SOMLINK somTD_HIList_WriteToAERecord)(HIList *somSelf, Environment *ev,
  1602.         AERecord* dataForSubclass,
  1603.         AERecord* objectData,
  1604.         HIAERecordDataFormat dataFormat);
  1605. typedef void   (* SOMLINK somTD_HIList_CalculateOptimalSize)(HIList *somSelf, Environment *ev,
  1606.         SInt16* optimalWidth,
  1607.         SInt16* optimalHeight);
  1608. typedef void   (* SOMLINK somTD_HIList_GetBoundingRect)(HIList *somSelf, Environment *ev,
  1609.         HICoordinateSystem coordinate,
  1610.         Rect* boundingRect);
  1611. typedef void   (* SOMLINK somTD_HIList_SetBoundingRect)(HIList *somSelf, Environment *ev,
  1612.         HICoordinateSystem coordinate,
  1613.         Rect* newBoundingRect);
  1614. typedef void   (* SOMLINK somTD_HIList_SetPosition)(HIList *somSelf, Environment *ev,
  1615.         HICoordinateSystem coordinate,
  1616.         Point* newPosition);
  1617. typedef void   (* SOMLINK somTD_HIList_SetSize)(HIList *somSelf, Environment *ev,
  1618.         SInt16 width,
  1619.         SInt16 height);
  1620. typedef void   (* SOMLINK somTD_HIList_GetUpdateRect)(HIList *somSelf, Environment *ev,
  1621.         HICoordinateSystem coordinate,
  1622.         Rect* updateRect);
  1623. typedef void   (* SOMLINK somTD_HIList_Enable)(HIList *somSelf, Environment *ev);
  1624. typedef void   (* SOMLINK somTD_HIList_Disable)(HIList *somSelf, Environment *ev);
  1625. typedef boolean   (* SOMLINK somTD_HIList_IsEnabled)(HIList *somSelf, Environment *ev);
  1626. typedef void   (* SOMLINK somTD_HIList_Show)(HIList *somSelf, Environment *ev);
  1627. typedef void   (* SOMLINK somTD_HIList_Hide)(HIList *somSelf, Environment *ev);
  1628. typedef boolean   (* SOMLINK somTD_HIList_IsVisible)(HIList *somSelf, Environment *ev);
  1629. typedef OSStatus   (* SOMLINK somTD_HIList_HandleAppleEvent)(HIList *somSelf, Environment *ev,
  1630.         AEEventClass eventClass,
  1631.         AEEventID eventID,
  1632.         AppleEvent* theEvent,
  1633.         AppleEvent* reply,
  1634.         AEHandlerTableRef handlerTableRef);
  1635. typedef OSStatus   (* SOMLINK somTD_HIList_HandleActivate)(HIList *somSelf, Environment *ev,
  1636.         AppleEvent* theEvent,
  1637.         AppleEvent* reply,
  1638.         AEHandlerTableRef handlerTableRef);
  1639. typedef OSStatus   (* SOMLINK somTD_HIList_HandleDeactivate)(HIList *somSelf, Environment *ev,
  1640.         AppleEvent* theEvent,
  1641.         AppleEvent* reply,
  1642.         AEHandlerTableRef handlerTableRef);
  1643. typedef OSStatus   (* SOMLINK somTD_HIList_HandleNavigation)(HIList *somSelf, Environment *ev,
  1644.         SInt8 key,
  1645.         SInt8 keyCode,
  1646.         EventModifiers modifiers,
  1647.         AppleEvent* theEvent,
  1648.         AppleEvent* reply,
  1649.         AEHandlerTableRef handlerTableRef);
  1650. typedef OSStatus   (* SOMLINK somTD_HIList_HandleMouseDownInContent)(HIList *somSelf, Environment *ev,
  1651.         Point* portLocalWhere,
  1652.         EventModifiers modifiers,
  1653.         AppleEvent* theEvent,
  1654.         AppleEvent* reply,
  1655.         AEHandlerTableRef handlerTableRef);
  1656. typedef OSStatus   (* SOMLINK somTD_HIList_HandleMouseMovedInContent)(HIList *somSelf, Environment *ev,
  1657.         Point* portLocalWhere,
  1658.         EventModifiers modifiers,
  1659.         AppleEvent* theEvent,
  1660.         AppleEvent* reply,
  1661.         AEHandlerTableRef handlerTableRef);
  1662. typedef OSStatus   (* SOMLINK somTD_HIList_HandleMouseStoppedMovingInContent)(HIList *somSelf, Environment *ev,
  1663.         Point* portLocalWhere,
  1664.         EventModifiers modifiers,
  1665.         AppleEvent* theEvent,
  1666.         AppleEvent* reply,
  1667.         AEHandlerTableRef handlerTableRef);
  1668. typedef OSStatus   (* SOMLINK somTD_HIList_HandleMouseUpInContent)(HIList *somSelf, Environment *ev,
  1669.         Point* portLocalWhere,
  1670.         EventModifiers modifiers,
  1671.         AppleEvent* theEvent,
  1672.         AppleEvent* reply,
  1673.         AEHandlerTableRef handlerTableRef);
  1674. typedef void   (* SOMLINK somTD_HIList_TakeUserInputFocus)(HIList *somSelf, Environment *ev);
  1675. typedef void   (* SOMLINK somTD_HIList_ReleaseUserInputFocus)(HIList *somSelf, Environment *ev);
  1676. typedef boolean   (* SOMLINK somTD_HIList_HasUserInputFocus)(HIList *somSelf, Environment *ev);
  1677. typedef boolean   (* SOMLINK somTD_HIList_CanReleaseUserInputFocus)(HIList *somSelf, Environment *ev);
  1678. typedef void   (* SOMLINK somTD_HIList_SetUserInputFocusFlags)(HIList *somSelf, Environment *ev,
  1679.         HIUserInputFocusFlags flags);
  1680. typedef HIUserInputFocusFlags   (* SOMLINK somTD_HIList_GetUserInputFocusFlags)(HIList *somSelf, Environment *ev);
  1681. typedef OSStatus   (* SOMLINK somTD_HIList_SetTitle)(HIList *somSelf, Environment *ev,
  1682.         ConstHIImageRef title,
  1683.         HIAdoptionFlags disposalAdoptionFlags);
  1684. typedef OSStatus   (* SOMLINK somTD_HIList_GetTitle)(HIList *somSelf, Environment *ev,
  1685.         HIImageRef* title);
  1686. typedef void   (* SOMLINK somTD_HIList_Draw)(HIList *somSelf, Environment *ev,
  1687.         CGrafPtr whichPort,
  1688.         RgnHandle drawRgn);
  1689. typedef void   (* SOMLINK somTD_HIList_Erase)(HIList *somSelf, Environment *ev,
  1690.         CGrafPtr whichPort,
  1691.         RgnHandle eraseRgn);
  1692. typedef void   (* SOMLINK somTD_HIList_Invalidate)(HIList *somSelf, Environment *ev);
  1693. typedef HIDrawingMode   (* SOMLINK somTD_HIList_GetDrawingMode)(HIList *somSelf, Environment *ev);
  1694. typedef void   (* SOMLINK somTD_HIList_SetDrawingMode)(HIList *somSelf, Environment *ev,
  1695.         HIDrawingMode drawingMode);
  1696. typedef void   (* SOMLINK somTD_HIList_SetBackgroundPattern)(HIList *somSelf, Environment *ev,
  1697.         PixPatHandle backgroundPattern);
  1698. typedef PixPatHandle   (* SOMLINK somTD_HIList_GetBackgroundPattern)(HIList *somSelf, Environment *ev);
  1699. typedef void   (* SOMLINK somTD_HIList_Cut)(HIList *somSelf, Environment *ev);
  1700. typedef void   (* SOMLINK somTD_HIList_Copy)(HIList *somSelf, Environment *ev);
  1701. typedef void   (* SOMLINK somTD_HIList_Paste)(HIList *somSelf, Environment *ev);
  1702. typedef void   (* SOMLINK somTD_HIList_Clear)(HIList *somSelf, Environment *ev);
  1703. typedef HIClipboardSupportFlags   (* SOMLINK somTD_HIList_GetClipboardSupportFlags)(HIList *somSelf, Environment *ev);
  1704. typedef OSStatus   (* SOMLINK somTD_HIList_AddStateChangeCallback)(HIList *somSelf, Environment *ev,
  1705.         HIStateChangeCallbackProcPtr changedStateCallback,
  1706.         HIStateChangeCallbackRef* newCallbackRef);
  1707. typedef OSStatus   (* SOMLINK somTD_HIList_RemoveStateChangeCallback)(HIList *somSelf, Environment *ev,
  1708.         HIStateChangeCallbackRef callbackRefToRemove);
  1709. typedef OSStatus   (* SOMLINK somTD_HIList_GetHIObjectFromRefLabel)(Environment *ev,
  1710.         RefLabel* identifier,
  1711.         ItemCount requestedObjects,
  1712.         ItemCount* totalObjects,
  1713.         HIObject** theObjects);
  1714. typedef OSStatus   (* SOMLINK somTD_HIList_GetNewHIObject)(Environment *ev,
  1715.         AESubDesc* objectInitializer,
  1716.         HIObject** newObject);
  1717. typedef OSStatus   (* SOMLINK somTD_HIList_GetNewHIObjectFromResource)(Environment *ev,
  1718.         ResID objectInitializerResourceID,
  1719.         HIObject** newObject);
  1720. typedef void   (* SOMLINK somTD_HIList_DrawContent)(HIList *somSelf, Environment *ev,
  1721.         CGrafPtr whichPort,
  1722.         RgnHandle drawRgn);
  1723. typedef void   (* SOMLINK somTD_HIList_EraseContent)(HIList *somSelf, Environment *ev,
  1724.         CGrafPtr whichPort,
  1725.         RgnHandle regionToErase);
  1726. typedef void   (* SOMLINK somTD_HIList_TranslatePoint)(HIList *somSelf, Environment *ev,
  1727.         HICoordinateSystem translateFrom,
  1728.         HICoordinateSystem translateTo,
  1729.         Point* sourcePoint,
  1730.         Point* translatedPoint);
  1731. typedef void   (* SOMLINK somTD_HIList_TranslateRect)(HIList *somSelf, Environment *ev,
  1732.         HICoordinateSystem translateFrom,
  1733.         HICoordinateSystem translateTo,
  1734.         Rect* sourceRect,
  1735.         Rect* translatedRect);
  1736. typedef void   (* SOMLINK somTD_HIList_StateChanged)(HIList *somSelf, Environment *ev,
  1737.         HIStateChangeCodeCreator selectorCreator,
  1738.         HIStateChangeCode changedCode);
  1739. typedef void   (* SOMLINK somTD_HIList_SetClipboardSupportFlags)(HIList *somSelf, Environment *ev,
  1740.         HIClipboardSupportFlags flags);
  1741. typedef OSStatus   (* SOMLINK somTD_HIList_Verify)(HIList *somSelf, Environment *ev);
  1742. typedef void   (* SOMLINK somTD_HIList_somInit)(HIList *somSelf);
  1743. typedef void   (* SOMLINK somTD_HIList_somUninit)(HIList *somSelf);
  1744. typedef SOMObject*   (* SOMLINK somTD_HIList_somDuplicateReference)(HIList *somSelf);
  1745. typedef boolean   (* SOMLINK somTD_HIList_somCompareReference)(HIList *somSelf,
  1746.         SOMObject* anObject);
  1747. typedef SOMObject*   (* SOMLINK somTD_HIList_somRelease)(HIList *somSelf);
  1748. typedef void   (* SOMLINK somTD_HIList_somFree)(HIList *somSelf);
  1749. typedef boolean   (* SOMLINK somTD_HIList_somCanDelete)(HIList *somSelf);
  1750. typedef SOMClass*   (* SOMLINK somTD_HIList_somGetClass)(HIList *somSelf);
  1751. typedef corbastring   (* SOMLINK somTD_HIList_somGetClassName)(HIList *somSelf);
  1752. typedef long   (* SOMLINK somTD_HIList_somGetSize)(HIList *somSelf);
  1753. typedef boolean   (* SOMLINK somTD_HIList_somIsA)(HIList *somSelf,
  1754.         SOMClass* aClassObj);
  1755. typedef boolean   (* SOMLINK somTD_HIList_somRespondsTo)(HIList *somSelf,
  1756.         somId mId);
  1757. typedef boolean   (* SOMLINK somTD_HIList_somIsInstanceOf)(HIList *somSelf,
  1758.         SOMClass* aClassObj);
  1759. typedef boolean   (* SOMLINK somTD_HIList_somDispatch)(HIList *somSelf,
  1760.         somToken* retValue,
  1761.         somId methodId,
  1762.         va_list ap);
  1763. typedef boolean   (* SOMLINK somTD_HIList_somClassDispatch)(HIList *somSelf,
  1764.         SOMClass* clsObj,
  1765.         somToken* retValue,
  1766.         somId methodId,
  1767.         va_list ap);
  1768. typedef boolean   (* SOMLINK somTD_HIList_somCastObj)(HIList *somSelf,
  1769.         SOMClass* cls);
  1770. typedef boolean   (* SOMLINK somTD_HIList_somResetObj)(HIList *somSelf);
  1771. typedef SOMObject*   (* SOMLINK somTD_HIList_somPrintSelf)(HIList *somSelf);
  1772. typedef void   (* SOMLINK somTD_HIList_somDumpSelf)(HIList *somSelf,
  1773.         long level);
  1774. typedef void   (* SOMLINK somTD_HIList_somDumpSelfInt)(HIList *somSelf,
  1775.         long level);
  1776. }
  1777.  
  1778. #endif /* HIList_API */
  1779.  
  1780.  
  1781. /*
  1782.  * -- This emitter treats Method Tokens as Thunks by default.
  1783.  * -- Use the sc modifier "nothunks" to change this default
  1784.  */
  1785. #undef somresolve_
  1786. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  1787.  
  1788. /*
  1789.  * -- The C++ Wrapper Class for HIList
  1790.  */
  1791. class HIList : public HIAbstractList
  1792. {
  1793. public:
  1794.  
  1795. // HIList::new registers use of the class object, and then uses somNew
  1796. // to allocate memory and load the object method table pointer. 
  1797. void *operator new(size_t size)
  1798. {
  1799.     SOM_IgnoreWarning(size);
  1800.     // Allocate memory using the default allocator for HIList, and
  1801.     // clear mem & set method table pointer, call basic initialization
  1802.     return (void*) somNewObject(HIList);
  1803. }
  1804.  
  1805. // HIList::delete uses the default deallocator for the object's class.
  1806. void operator delete(void * obj)
  1807. {
  1808.     if (obj) {
  1809.         SOM_Resolve(obj,SOMObject,somFree)
  1810.            ( (SOMObject*) obj );
  1811.     }
  1812. }
  1813.  
  1814. /* method: InitList */
  1815. OSStatus   InitList(Environment *ev,
  1816.         RefLabel* identifier,
  1817.         HIWindow* window,
  1818.         Rect* bounds,
  1819.         HIItemStorage* itemStorage)
  1820. {
  1821.    return SOM_ResolveD(this,HIList,HIList,InitList)
  1822.     (this,ev,identifier,window,bounds,itemStorage);
  1823. }
  1824.  
  1825.  
  1826. /*
  1827.  * -- Inherited methods
  1828.  */
  1829. /* method: InitAbstractList */
  1830. OSStatus   InitAbstractList(Environment *ev,
  1831.         RefLabel* identifier,
  1832.         HIWindow* window,
  1833.         Rect* bounds)
  1834. {
  1835.    return SOM_ResolveD(this,HIList,HIAbstractList,InitAbstractList)
  1836.     (this,ev,identifier,window,bounds);
  1837. }
  1838.  
  1839. /* method: AddItems */
  1840. OSStatus   AddItems(Environment *ev,
  1841.         HIItemIndex index,
  1842.         UInt32 numItems)
  1843. {
  1844.    return SOM_ResolveD(this,HIList,HIAbstractList,AddItems)
  1845.     (this,ev,index,numItems);
  1846. }
  1847.  
  1848. /* method: DeleteItem */
  1849. OSStatus   DeleteItem(Environment *ev,
  1850.         HIItemIndex index)
  1851. {
  1852.    return SOM_ResolveD(this,HIList,HIAbstractList,DeleteItem)
  1853.     (this,ev,index);
  1854. }
  1855.  
  1856. /* method: SetItemImage */
  1857. OSStatus   SetItemImage(Environment *ev,
  1858.         HIItemIndex index,
  1859.         ConstHIImageRef imageRef,
  1860.         HIAdoptionFlags imageAdoptionFlags)
  1861. {
  1862.    return SOM_ResolveD(this,HIList,HIAbstractList,SetItemImage)
  1863.     (this,ev,index,imageRef,imageAdoptionFlags);
  1864. }
  1865.  
  1866. /* method: GetItemImage */
  1867. OSStatus   GetItemImage(Environment *ev,
  1868.         HIItemIndex index,
  1869.         HIImageRef* imageRefPtr)
  1870. {
  1871.    return SOM_ResolveD(this,HIList,HIAbstractList,GetItemImage)
  1872.     (this,ev,index,imageRefPtr);
  1873. }
  1874.  
  1875. /* method: SetItemMark */
  1876. OSStatus   SetItemMark(Environment *ev,
  1877.         HIItemIndex index,
  1878.         UInt16 markChar)
  1879. {
  1880.    return SOM_ResolveD(this,HIList,HIAbstractList,SetItemMark)
  1881.     (this,ev,index,markChar);
  1882. }
  1883.  
  1884. /* method: GetItemMark */
  1885. UInt16   GetItemMark(Environment *ev,
  1886.         HIItemIndex index)
  1887. {
  1888.    return SOM_ResolveD(this,HIList,HIAbstractList,GetItemMark)
  1889.     (this,ev,index);
  1890. }
  1891.  
  1892. /* method: SetItemIcon */
  1893. OSStatus   SetItemIcon(Environment *ev,
  1894.         HIItemIndex index,
  1895.         Handle iconSuite)
  1896. {
  1897.    return SOM_ResolveD(this,HIList,HIAbstractList,SetItemIcon)
  1898.     (this,ev,index,iconSuite);
  1899. }
  1900.  
  1901. /* method: GetItemIcon */
  1902. Handle   GetItemIcon(Environment *ev,
  1903.         HIItemIndex index)
  1904. {
  1905.    return SOM_ResolveD(this,HIList,HIAbstractList,GetItemIcon)
  1906.     (this,ev,index);
  1907. }
  1908.  
  1909. /* method: SetItemChild */
  1910. OSStatus   SetItemChild(Environment *ev,
  1911.         HIItemIndex index,
  1912.         HIAbstractList* child)
  1913. {
  1914.    return SOM_ResolveD(this,HIList,HIAbstractList,SetItemChild)
  1915.     (this,ev,index,child);
  1916. }
  1917.  
  1918. /* method: GetItemChild */
  1919. OSStatus   GetItemChild(Environment *ev,
  1920.         HIItemIndex index,
  1921.         HIAbstractList** child)
  1922. {
  1923.    return SOM_ResolveD(this,HIList,HIAbstractList,GetItemChild)
  1924.     (this,ev,index,child);
  1925. }
  1926.  
  1927. /* method: SetItemEnabledState */
  1928. OSStatus   SetItemEnabledState(Environment *ev,
  1929.         HIItemIndex index,
  1930.         HIItemState enableState)
  1931. {
  1932.    return SOM_ResolveD(this,HIList,HIAbstractList,SetItemEnabledState)
  1933.     (this,ev,index,enableState);
  1934. }
  1935.  
  1936. /* method: GetItemEnabledState */
  1937. HIItemState   GetItemEnabledState(Environment *ev,
  1938.         HIItemIndex index)
  1939. {
  1940.    return SOM_ResolveD(this,HIList,HIAbstractList,GetItemEnabledState)
  1941.     (this,ev,index);
  1942. }
  1943.  
  1944. /* method: SetItemAttributes */
  1945. OSStatus   SetItemAttributes(Environment *ev,
  1946.         HIItemIndex index,
  1947.         HIItemAttributes attributes)
  1948. {
  1949.    return SOM_ResolveD(this,HIList,HIAbstractList,SetItemAttributes)
  1950.     (this,ev,index,attributes);
  1951. }
  1952.  
  1953. /* method: GetItemAttributes */
  1954. HIItemAttributes   GetItemAttributes(Environment *ev,
  1955.         HIItemIndex index)
  1956. {
  1957.    return SOM_ResolveD(this,HIList,HIAbstractList,GetItemAttributes)
  1958.     (this,ev,index);
  1959. }
  1960.  
  1961. /* method: SetItemRefLabel */
  1962. OSStatus   SetItemRefLabel(Environment *ev,
  1963.         HIItemIndex index,
  1964.         RefLabel* identifier)
  1965. {
  1966.    return SOM_ResolveD(this,HIList,HIAbstractList,SetItemRefLabel)
  1967.     (this,ev,index,identifier);
  1968. }
  1969.  
  1970. /* method: GetItemRefLabel */
  1971. OSStatus   GetItemRefLabel(Environment *ev,
  1972.         HIItemIndex index,
  1973.         RefLabel* identifier)
  1974. {
  1975.    return SOM_ResolveD(this,HIList,HIAbstractList,GetItemRefLabel)
  1976.     (this,ev,index,identifier);
  1977. }
  1978.  
  1979. /* method: GetItemCount */
  1980. UInt32   GetItemCount(Environment *ev)
  1981. {
  1982.    return SOM_ResolveD(this,HIList,HIAbstractList,GetItemCount)
  1983.     (this,ev);
  1984. }
  1985.  
  1986. /* method: SelectItem */
  1987. void   SelectItem(Environment *ev,
  1988.         HIItemIndex index)
  1989. {
  1990.    SOM_ResolveD(this,HIList,HIAbstractList,SelectItem)
  1991.     (this,ev,index);
  1992. }
  1993.  
  1994. /* method: DeselectItem */
  1995. void   DeselectItem(Environment *ev,
  1996.         HIItemIndex index)
  1997. {
  1998.    SOM_ResolveD(this,HIList,HIAbstractList,DeselectItem)
  1999.     (this,ev,index);
  2000. }
  2001.  
  2002. /* method: GetSelectedItem */
  2003. HIItemIndex   GetSelectedItem(Environment *ev)
  2004. {
  2005.    return SOM_ResolveD(this,HIList,HIAbstractList,GetSelectedItem)
  2006.     (this,ev);
  2007. }
  2008.  
  2009. /* method: AddItemCollectionItem */
  2010. OSStatus   AddItemCollectionItem(Environment *ev,
  2011.         HIItemIndex index,
  2012.         CollectionTag tag,
  2013.         UInt32 dataSize,
  2014.         void* data)
  2015. {
  2016.    return SOM_ResolveD(this,HIList,HIAbstractList,AddItemCollectionItem)
  2017.     (this,ev,index,tag,dataSize,data);
  2018. }
  2019.  
  2020. /* method: GetItemCollectionItemData */
  2021. OSStatus   GetItemCollectionItemData(Environment *ev,
  2022.         HIItemIndex index,
  2023.         CollectionTag tag,
  2024.         UInt32 dataSizeIn,
  2025.         UInt32* dataSizeOut,
  2026.         void* data)
  2027. {
  2028.    return SOM_ResolveD(this,HIList,HIAbstractList,GetItemCollectionItemData)
  2029.     (this,ev,index,tag,dataSizeIn,dataSizeOut,data);
  2030. }
  2031.  
  2032. /* method: RemoveItemCollectionItem */
  2033. OSStatus   RemoveItemCollectionItem(Environment *ev,
  2034.         HIItemIndex index,
  2035.         CollectionTag tag)
  2036. {
  2037.    return SOM_ResolveD(this,HIList,HIAbstractList,RemoveItemCollectionItem)
  2038.     (this,ev,index,tag);
  2039. }
  2040.  
  2041. /* method: GetEmbeddingParent */
  2042. HIEmbeddingPanel*   GetEmbeddingParent(Environment *ev)
  2043. {
  2044.    return SOM_ResolveD(this,HIList,HIPanel,GetEmbeddingParent)
  2045.     (this,ev);
  2046. }
  2047.  
  2048. /* method: InitPanel */
  2049. OSStatus   InitPanel(Environment *ev,
  2050.         RefLabel* identifier,
  2051.         HIWindow* window,
  2052.         Rect* bounds)
  2053. {
  2054.    return SOM_ResolveD(this,HIList,HIPanel,InitPanel)
  2055.     (this,ev,identifier,window,bounds);
  2056. }
  2057.  
  2058. /* method: RegisterInterestInAppleEvent */
  2059. OSStatus   RegisterInterestInAppleEvent(Environment *ev,
  2060.         AEHandlerTableRef table,
  2061.         AEEventClass eventClass,
  2062.         AEEventID eventID,
  2063.         HIEventRoutingType eventRouting)
  2064. {
  2065.    return SOM_ResolveD(this,HIList,HIPanel,RegisterInterestInAppleEvent)
  2066.     (this,ev,table,eventClass,eventID,eventRouting);
  2067. }
  2068.  
  2069. /* method: HasValidContent */
  2070. boolean   HasValidContent(Environment *ev)
  2071. {
  2072.    return SOM_ResolveD(this,HIList,HIPanel,HasValidContent)
  2073.     (this,ev);
  2074. }
  2075.  
  2076. /* method: GetDeepCollectionItemData */
  2077. OSStatus   GetDeepCollectionItemData(Environment *ev,
  2078.         CollectionTag tag,
  2079.         SInt32 id,
  2080.         ByteCount sizeAllowed,
  2081.         ByteCount* sizeReturned,
  2082.         void* itemData)
  2083. {
  2084.    return SOM_ResolveD(this,HIList,HIPanel,GetDeepCollectionItemData)
  2085.     (this,ev,tag,id,sizeAllowed,sizeReturned,itemData);
  2086. }
  2087.  
  2088. /* method: GetWindow */
  2089. HIWindow*   GetWindow(Environment *ev)
  2090. {
  2091.    return SOM_ResolveD(this,HIList,HIObject,GetWindow)
  2092.     (this,ev);
  2093. }
  2094.  
  2095. /* method: GetPort */
  2096. CGrafPtr   GetPort(Environment *ev)
  2097. {
  2098.    return SOM_ResolveD(this,HIList,HIObject,GetPort)
  2099.     (this,ev);
  2100. }
  2101.  
  2102. /* method: GetRefLabel */
  2103. void   GetRefLabel(Environment *ev,
  2104.         RefLabel* identifier)
  2105. {
  2106.    SOM_ResolveD(this,HIList,HIObject,GetRefLabel)
  2107.     (this,ev,identifier);
  2108. }
  2109.  
  2110. /* method: GetCollection */
  2111. Collection   GetCollection(Environment *ev)
  2112. {
  2113.    return SOM_ResolveD(this,HIList,HIObject,GetCollection)
  2114.     (this,ev);
  2115. }
  2116.  
  2117. /* method: Init */
  2118. OSStatus   Init(Environment *ev,
  2119.         RefLabel* identifier,
  2120.         Rect* boundingRect)
  2121. {
  2122.    return SOM_ResolveD(this,HIList,HIObject,Init)
  2123.     (this,ev,identifier,boundingRect);
  2124. }
  2125.  
  2126. /* method: Terminate */
  2127. void   Terminate(Environment *ev)
  2128. {
  2129.    SOM_ResolveD(this,HIList,HIObject,Terminate)
  2130.     (this,ev);
  2131. }
  2132.  
  2133. /* method: Clone */
  2134. HIObject*   Clone(Environment *ev)
  2135. {
  2136.    return SOM_ResolveD(this,HIList,HIObject,Clone)
  2137.     (this,ev);
  2138. }
  2139.  
  2140. /* method: Release */
  2141. void   Release(Environment *ev)
  2142. {
  2143.    SOM_ResolveD(this,HIList,HIObject,Release)
  2144.     (this,ev);
  2145. }
  2146.  
  2147. /* method: GetOwnerCount */
  2148. ItemCount   GetOwnerCount(Environment *ev)
  2149. {
  2150.    return SOM_ResolveD(this,HIList,HIObject,GetOwnerCount)
  2151.     (this,ev);
  2152. }
  2153.  
  2154. /* method: InitFromAERecord */
  2155. OSStatus   InitFromAERecord(Environment *ev,
  2156.         AESubDesc* baseInitializerData,
  2157.         AESubDesc* initializerDataForClass,
  2158.         HIAERecordDataFormat dataFormat)
  2159. {
  2160.    return SOM_ResolveD(this,HIList,HIObject,InitFromAERecord)
  2161.     (this,ev,baseInitializerData,initializerDataForClass,dataFormat);
  2162. }
  2163.  
  2164. /* method: WriteToAERecord */
  2165. OSStatus   WriteToAERecord(Environment *ev,
  2166.         AERecord* dataForSubclass,
  2167.         AERecord* objectData,
  2168.         HIAERecordDataFormat dataFormat)
  2169. {
  2170.    return SOM_ResolveD(this,HIList,HIObject,WriteToAERecord)
  2171.     (this,ev,dataForSubclass,objectData,dataFormat);
  2172. }
  2173.  
  2174. /* method: CalculateOptimalSize */
  2175. void   CalculateOptimalSize(Environment *ev,
  2176.         SInt16* optimalWidth,
  2177.         SInt16* optimalHeight)
  2178. {
  2179.    SOM_ResolveD(this,HIList,HIObject,CalculateOptimalSize)
  2180.     (this,ev,optimalWidth,optimalHeight);
  2181. }
  2182.  
  2183. /* method: GetBoundingRect */
  2184. void   GetBoundingRect(Environment *ev,
  2185.         HICoordinateSystem coordinate,
  2186.         Rect* boundingRect)
  2187. {
  2188.    SOM_ResolveD(this,HIList,HIObject,GetBoundingRect)
  2189.     (this,ev,coordinate,boundingRect);
  2190. }
  2191.  
  2192. /* method: SetBoundingRect */
  2193. void   SetBoundingRect(Environment *ev,
  2194.         HICoordinateSystem coordinate,
  2195.         Rect* newBoundingRect)
  2196. {
  2197.    SOM_ResolveD(this,HIList,HIObject,SetBoundingRect)
  2198.     (this,ev,coordinate,newBoundingRect);
  2199. }
  2200.  
  2201. /* method: SetPosition */
  2202. void   SetPosition(Environment *ev,
  2203.         HICoordinateSystem coordinate,
  2204.         Point* newPosition)
  2205. {
  2206.    SOM_ResolveD(this,HIList,HIObject,SetPosition)
  2207.     (this,ev,coordinate,newPosition);
  2208. }
  2209.  
  2210. /* method: SetSize */
  2211. void   SetSize(Environment *ev,
  2212.         SInt16 width,
  2213.         SInt16 height)
  2214. {
  2215.    SOM_ResolveD(this,HIList,HIObject,SetSize)
  2216.     (this,ev,width,height);
  2217. }
  2218.  
  2219. /* method: GetUpdateRect */
  2220. void   GetUpdateRect(Environment *ev,
  2221.         HICoordinateSystem coordinate,
  2222.         Rect* updateRect)
  2223. {
  2224.    SOM_ResolveD(this,HIList,HIObject,GetUpdateRect)
  2225.     (this,ev,coordinate,updateRect);
  2226. }
  2227.  
  2228. /* method: Enable */
  2229. void   Enable(Environment *ev)
  2230. {
  2231.    SOM_ResolveD(this,HIList,HIObject,Enable)
  2232.     (this,ev);
  2233. }
  2234.  
  2235. /* method: Disable */
  2236. void   Disable(Environment *ev)
  2237. {
  2238.    SOM_ResolveD(this,HIList,HIObject,Disable)
  2239.     (this,ev);
  2240. }
  2241.  
  2242. /* method: IsEnabled */
  2243. boolean   IsEnabled(Environment *ev)
  2244. {
  2245.    return SOM_ResolveD(this,HIList,HIObject,IsEnabled)
  2246.     (this,ev);
  2247. }
  2248.  
  2249. /* method: Show */
  2250. void   Show(Environment *ev)
  2251. {
  2252.    SOM_ResolveD(this,HIList,HIObject,Show)
  2253.     (this,ev);
  2254. }
  2255.  
  2256. /* method: Hide */
  2257. void   Hide(Environment *ev)
  2258. {
  2259.    SOM_ResolveD(this,HIList,HIObject,Hide)
  2260.     (this,ev);
  2261. }
  2262.  
  2263. /* method: IsVisible */
  2264. boolean   IsVisible(Environment *ev)
  2265. {
  2266.    return SOM_ResolveD(this,HIList,HIObject,IsVisible)
  2267.     (this,ev);
  2268. }
  2269.  
  2270. /* method: HandleAppleEvent */
  2271. OSStatus   HandleAppleEvent(Environment *ev,
  2272.         AEEventClass eventClass,
  2273.         AEEventID eventID,
  2274.         AppleEvent* theEvent,
  2275.         AppleEvent* reply,
  2276.         AEHandlerTableRef handlerTableRef)
  2277. {
  2278.    return SOM_ResolveD(this,HIList,HIObject,HandleAppleEvent)
  2279.     (this,ev,eventClass,eventID,theEvent,reply,handlerTableRef);
  2280. }
  2281.  
  2282. /* method: HandleActivate */
  2283. OSStatus   HandleActivate(Environment *ev,
  2284.         AppleEvent* theEvent,
  2285.         AppleEvent* reply,
  2286.         AEHandlerTableRef handlerTableRef)
  2287. {
  2288.    return SOM_ResolveD(this,HIList,HIObject,HandleActivate)
  2289.     (this,ev,theEvent,reply,handlerTableRef);
  2290. }
  2291.  
  2292. /* method: HandleDeactivate */
  2293. OSStatus   HandleDeactivate(Environment *ev,
  2294.         AppleEvent* theEvent,
  2295.         AppleEvent* reply,
  2296.         AEHandlerTableRef handlerTableRef)
  2297. {
  2298.    return SOM_ResolveD(this,HIList,HIObject,HandleDeactivate)
  2299.     (this,ev,theEvent,reply,handlerTableRef);
  2300. }
  2301.  
  2302. /* method: HandleNavigation */
  2303. OSStatus   HandleNavigation(Environment *ev,
  2304.         SInt8 key,
  2305.         SInt8 keyCode,
  2306.         EventModifiers modifiers,
  2307.         AppleEvent* theEvent,
  2308.         AppleEvent* reply,
  2309.         AEHandlerTableRef handlerTableRef)
  2310. {
  2311.    return SOM_ResolveD(this,HIList,HIObject,HandleNavigation)
  2312.     (this,ev,key,keyCode,modifiers,theEvent,reply,handlerTableRef);
  2313. }
  2314.  
  2315. /* method: HandleMouseDownInContent */
  2316. OSStatus   HandleMouseDownInContent(Environment *ev,
  2317.         Point* portLocalWhere,
  2318.         EventModifiers modifiers,
  2319.         AppleEvent* theEvent,
  2320.         AppleEvent* reply,
  2321.         AEHandlerTableRef handlerTableRef)
  2322. {
  2323.    return SOM_ResolveD(this,HIList,HIObject,HandleMouseDownInContent)
  2324.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  2325. }
  2326.  
  2327. /* method: HandleMouseMovedInContent */
  2328. OSStatus   HandleMouseMovedInContent(Environment *ev,
  2329.         Point* portLocalWhere,
  2330.         EventModifiers modifiers,
  2331.         AppleEvent* theEvent,
  2332.         AppleEvent* reply,
  2333.         AEHandlerTableRef handlerTableRef)
  2334. {
  2335.    return SOM_ResolveD(this,HIList,HIObject,HandleMouseMovedInContent)
  2336.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  2337. }
  2338.  
  2339. /* method: HandleMouseStoppedMovingInContent */
  2340. OSStatus   HandleMouseStoppedMovingInContent(Environment *ev,
  2341.         Point* portLocalWhere,
  2342.         EventModifiers modifiers,
  2343.         AppleEvent* theEvent,
  2344.         AppleEvent* reply,
  2345.         AEHandlerTableRef handlerTableRef)
  2346. {
  2347.    return SOM_ResolveD(this,HIList,HIObject,HandleMouseStoppedMovingInContent)
  2348.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  2349. }
  2350.  
  2351. /* method: HandleMouseUpInContent */
  2352. OSStatus   HandleMouseUpInContent(Environment *ev,
  2353.         Point* portLocalWhere,
  2354.         EventModifiers modifiers,
  2355.         AppleEvent* theEvent,
  2356.         AppleEvent* reply,
  2357.         AEHandlerTableRef handlerTableRef)
  2358. {
  2359.    return SOM_ResolveD(this,HIList,HIObject,HandleMouseUpInContent)
  2360.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  2361. }
  2362.  
  2363. /* method: TakeUserInputFocus */
  2364. void   TakeUserInputFocus(Environment *ev)
  2365. {
  2366.    SOM_ResolveD(this,HIList,HIObject,TakeUserInputFocus)
  2367.     (this,ev);
  2368. }
  2369.  
  2370. /* method: ReleaseUserInputFocus */
  2371. void   ReleaseUserInputFocus(Environment *ev)
  2372. {
  2373.    SOM_ResolveD(this,HIList,HIObject,ReleaseUserInputFocus)
  2374.     (this,ev);
  2375. }
  2376.  
  2377. /* method: HasUserInputFocus */
  2378. boolean   HasUserInputFocus(Environment *ev)
  2379. {
  2380.    return SOM_ResolveD(this,HIList,HIObject,HasUserInputFocus)
  2381.     (this,ev);
  2382. }
  2383.  
  2384. /* method: CanReleaseUserInputFocus */
  2385. boolean   CanReleaseUserInputFocus(Environment *ev)
  2386. {
  2387.    return SOM_ResolveD(this,HIList,HIObject,CanReleaseUserInputFocus)
  2388.     (this,ev);
  2389. }
  2390.  
  2391. /* method: SetUserInputFocusFlags */
  2392. void   SetUserInputFocusFlags(Environment *ev,
  2393.         HIUserInputFocusFlags flags)
  2394. {
  2395.    SOM_ResolveD(this,HIList,HIObject,SetUserInputFocusFlags)
  2396.     (this,ev,flags);
  2397. }
  2398.  
  2399. /* method: GetUserInputFocusFlags */
  2400. HIUserInputFocusFlags   GetUserInputFocusFlags(Environment *ev)
  2401. {
  2402.    return SOM_ResolveD(this,HIList,HIObject,GetUserInputFocusFlags)
  2403.     (this,ev);
  2404. }
  2405.  
  2406. /* method: SetTitle */
  2407. OSStatus   SetTitle(Environment *ev,
  2408.         ConstHIImageRef title,
  2409.         HIAdoptionFlags disposalAdoptionFlags)
  2410. {
  2411.    return SOM_ResolveD(this,HIList,HIObject,SetTitle)
  2412.     (this,ev,title,disposalAdoptionFlags);
  2413. }
  2414.  
  2415. /* method: GetTitle */
  2416. OSStatus   GetTitle(Environment *ev,
  2417.         HIImageRef* title)
  2418. {
  2419.    return SOM_ResolveD(this,HIList,HIObject,GetTitle)
  2420.     (this,ev,title);
  2421. }
  2422.  
  2423. /* method: Draw */
  2424. void   Draw(Environment *ev,
  2425.         CGrafPtr whichPort,
  2426.         RgnHandle drawRgn)
  2427. {
  2428.    SOM_ResolveD(this,HIList,HIObject,Draw)
  2429.     (this,ev,whichPort,drawRgn);
  2430. }
  2431.  
  2432. /* method: Erase */
  2433. void   Erase(Environment *ev,
  2434.         CGrafPtr whichPort,
  2435.         RgnHandle eraseRgn)
  2436. {
  2437.    SOM_ResolveD(this,HIList,HIObject,Erase)
  2438.     (this,ev,whichPort,eraseRgn);
  2439. }
  2440.  
  2441. /* method: Invalidate */
  2442. void   Invalidate(Environment *ev)
  2443. {
  2444.    SOM_ResolveD(this,HIList,HIObject,Invalidate)
  2445.     (this,ev);
  2446. }
  2447.  
  2448. /* method: GetDrawingMode */
  2449. HIDrawingMode   GetDrawingMode(Environment *ev)
  2450. {
  2451.    return SOM_ResolveD(this,HIList,HIObject,GetDrawingMode)
  2452.     (this,ev);
  2453. }
  2454.  
  2455. /* method: SetDrawingMode */
  2456. void   SetDrawingMode(Environment *ev,
  2457.         HIDrawingMode drawingMode)
  2458. {
  2459.    SOM_ResolveD(this,HIList,HIObject,SetDrawingMode)
  2460.     (this,ev,drawingMode);
  2461. }
  2462.  
  2463. /* method: SetBackgroundPattern */
  2464. void   SetBackgroundPattern(Environment *ev,
  2465.         PixPatHandle backgroundPattern)
  2466. {
  2467.    SOM_ResolveD(this,HIList,HIObject,SetBackgroundPattern)
  2468.     (this,ev,backgroundPattern);
  2469. }
  2470.  
  2471. /* method: GetBackgroundPattern */
  2472. PixPatHandle   GetBackgroundPattern(Environment *ev)
  2473. {
  2474.    return SOM_ResolveD(this,HIList,HIObject,GetBackgroundPattern)
  2475.     (this,ev);
  2476. }
  2477.  
  2478. /* method: Cut */
  2479. void   Cut(Environment *ev)
  2480. {
  2481.    SOM_ResolveD(this,HIList,HIObject,Cut)
  2482.     (this,ev);
  2483. }
  2484.  
  2485. /* method: Copy */
  2486. void   Copy(Environment *ev)
  2487. {
  2488.    SOM_ResolveD(this,HIList,HIObject,Copy)
  2489.     (this,ev);
  2490. }
  2491.  
  2492. /* method: Paste */
  2493. void   Paste(Environment *ev)
  2494. {
  2495.    SOM_ResolveD(this,HIList,HIObject,Paste)
  2496.     (this,ev);
  2497. }
  2498.  
  2499. /* method: Clear */
  2500. void   Clear(Environment *ev)
  2501. {
  2502.    SOM_ResolveD(this,HIList,HIObject,Clear)
  2503.     (this,ev);
  2504. }
  2505.  
  2506. /* method: GetClipboardSupportFlags */
  2507. HIClipboardSupportFlags   GetClipboardSupportFlags(Environment *ev)
  2508. {
  2509.    return SOM_ResolveD(this,HIList,HIObject,GetClipboardSupportFlags)
  2510.     (this,ev);
  2511. }
  2512.  
  2513. /* method: AddStateChangeCallback */
  2514. OSStatus   AddStateChangeCallback(Environment *ev,
  2515.         HIStateChangeCallbackProcPtr changedStateCallback,
  2516.         HIStateChangeCallbackRef* newCallbackRef)
  2517. {
  2518.    return SOM_ResolveD(this,HIList,HIObject,AddStateChangeCallback)
  2519.     (this,ev,changedStateCallback,newCallbackRef);
  2520. }
  2521.  
  2522. /* method: RemoveStateChangeCallback */
  2523. OSStatus   RemoveStateChangeCallback(Environment *ev,
  2524.         HIStateChangeCallbackRef callbackRefToRemove)
  2525. {
  2526.    return SOM_ResolveD(this,HIList,HIObject,RemoveStateChangeCallback)
  2527.     (this,ev,callbackRefToRemove);
  2528. }
  2529.  
  2530. /* noself procedure: GetHIObjectFromRefLabel */
  2531. static OSStatus   GetHIObjectFromRefLabel(Environment *ev,
  2532.         RefLabel* identifier,
  2533.         ItemCount requestedObjects,
  2534.         ItemCount* totalObjects,
  2535.         HIObject** theObjects)
  2536. {
  2537. return ((somTD_HIList_GetHIObjectFromRefLabel)HIObjectClassData.GetHIObjectFromRefLabel)
  2538.     (ev,identifier,requestedObjects,totalObjects,theObjects);
  2539. }
  2540.  
  2541. /* noself procedure: GetNewHIObject */
  2542. static OSStatus   GetNewHIObject(Environment *ev,
  2543.         AESubDesc* objectInitializer,
  2544.         HIObject** newObject)
  2545. {
  2546. return ((somTD_HIList_GetNewHIObject)HIObjectClassData.GetNewHIObject)
  2547.     (ev,objectInitializer,newObject);
  2548. }
  2549.  
  2550. /* noself procedure: GetNewHIObjectFromResource */
  2551. static OSStatus   GetNewHIObjectFromResource(Environment *ev,
  2552.         ResID objectInitializerResourceID,
  2553.         HIObject** newObject)
  2554. {
  2555. return ((somTD_HIList_GetNewHIObjectFromResource)HIObjectClassData.GetNewHIObjectFromResource)
  2556.     (ev,objectInitializerResourceID,newObject);
  2557. }
  2558.  
  2559. /* method: DrawContent */
  2560. void   DrawContent(Environment *ev,
  2561.         CGrafPtr whichPort,
  2562.         RgnHandle drawRgn)
  2563. {
  2564.    SOM_ResolveD(this,HIList,HIObject,DrawContent)
  2565.     (this,ev,whichPort,drawRgn);
  2566. }
  2567.  
  2568. /* method: EraseContent */
  2569. void   EraseContent(Environment *ev,
  2570.         CGrafPtr whichPort,
  2571.         RgnHandle regionToErase)
  2572. {
  2573.    SOM_ResolveD(this,HIList,HIObject,EraseContent)
  2574.     (this,ev,whichPort,regionToErase);
  2575. }
  2576.  
  2577. /* method: TranslatePoint */
  2578. void   TranslatePoint(Environment *ev,
  2579.         HICoordinateSystem translateFrom,
  2580.         HICoordinateSystem translateTo,
  2581.         Point* sourcePoint,
  2582.         Point* translatedPoint)
  2583. {
  2584.    SOM_ResolveD(this,HIList,HIObject,TranslatePoint)
  2585.     (this,ev,translateFrom,translateTo,sourcePoint,translatedPoint);
  2586. }
  2587.  
  2588. /* method: TranslateRect */
  2589. void   TranslateRect(Environment *ev,
  2590.         HICoordinateSystem translateFrom,
  2591.         HICoordinateSystem translateTo,
  2592.         Rect* sourceRect,
  2593.         Rect* translatedRect)
  2594. {
  2595.    SOM_ResolveD(this,HIList,HIObject,TranslateRect)
  2596.     (this,ev,translateFrom,translateTo,sourceRect,translatedRect);
  2597. }
  2598.  
  2599. /* method: StateChanged */
  2600. void   StateChanged(Environment *ev,
  2601.         HIStateChangeCodeCreator selectorCreator,
  2602.         HIStateChangeCode changedCode)
  2603. {
  2604.    SOM_ResolveD(this,HIList,HIObject,StateChanged)
  2605.     (this,ev,selectorCreator,changedCode);
  2606. }
  2607.  
  2608. /* method: SetClipboardSupportFlags */
  2609. void   SetClipboardSupportFlags(Environment *ev,
  2610.         HIClipboardSupportFlags flags)
  2611. {
  2612.    SOM_ResolveD(this,HIList,HIObject,SetClipboardSupportFlags)
  2613.     (this,ev,flags);
  2614. }
  2615.  
  2616. /* method: Verify */
  2617. OSStatus   Verify(Environment *ev)
  2618. {
  2619.    return SOM_ResolveD(this,HIList,HIObject,Verify)
  2620.     (this,ev);
  2621. }
  2622.  
  2623. /* method: somInit */
  2624. void   somInit()
  2625. {
  2626.    SOM_ResolveD(this,HIList,SOMObject,somInit)
  2627.     (this);
  2628. }
  2629.  
  2630. /* method: somUninit */
  2631. void   somUninit()
  2632. {
  2633.    SOM_ResolveD(this,HIList,SOMObject,somUninit)
  2634.     (this);
  2635. }
  2636.  
  2637. /* method: somDuplicateReference */
  2638. SOMObject*   somDuplicateReference()
  2639. {
  2640.    return SOM_ResolveD(this,HIList,SOMObject,somDuplicateReference)
  2641.     (this);
  2642. }
  2643.  
  2644. /* method: somCompareReference */
  2645. boolean   somCompareReference(SOMObject* anObject)
  2646. {
  2647.    return SOM_ResolveD(this,HIList,SOMObject,somCompareReference)
  2648.     (this,anObject);
  2649. }
  2650.  
  2651. /* method: somRelease */
  2652. SOMObject*   somRelease()
  2653. {
  2654.    return SOM_ResolveD(this,HIList,SOMObject,somRelease)
  2655.     (this);
  2656. }
  2657.  
  2658. /* method: somFree */
  2659. void   somFree()
  2660. {
  2661.    SOM_ResolveD(this,HIList,SOMObject,somFree)
  2662.     (this);
  2663. }
  2664.  
  2665. /* method: somCanDelete */
  2666. boolean   somCanDelete()
  2667. {
  2668.    return SOM_ResolveD(this,HIList,SOMObject,somCanDelete)
  2669.     (this);
  2670. }
  2671.  
  2672. /* method: somGetClass */
  2673. SOMClass*   somGetClass()
  2674. {
  2675.    return SOM_ResolveD(this,HIList,SOMObject,somGetClass)
  2676.     (this);
  2677. }
  2678.  
  2679. /* method: somGetClassName */
  2680. corbastring   somGetClassName()
  2681. {
  2682.    return SOM_ResolveD(this,HIList,SOMObject,somGetClassName)
  2683.     (this);
  2684. }
  2685.  
  2686. /* method: somGetSize */
  2687. long   somGetSize()
  2688. {
  2689.    return SOM_ResolveD(this,HIList,SOMObject,somGetSize)
  2690.     (this);
  2691. }
  2692.  
  2693. /* method: somIsA */
  2694. boolean   somIsA(SOMClass* aClassObj)
  2695. {
  2696.    return SOM_ResolveD(this,HIList,SOMObject,somIsA)
  2697.     (this,aClassObj);
  2698. }
  2699.  
  2700. /* method: somRespondsTo */
  2701. boolean   somRespondsTo(somId mId)
  2702. {
  2703.    return SOM_ResolveD(this,HIList,SOMObject,somRespondsTo)
  2704.     (this,mId);
  2705. }
  2706.  
  2707. /* method: somIsInstanceOf */
  2708. boolean   somIsInstanceOf(SOMClass* aClassObj)
  2709. {
  2710.    return SOM_ResolveD(this,HIList,SOMObject,somIsInstanceOf)
  2711.     (this,aClassObj);
  2712. }
  2713.  
  2714. /* va_list method: somDispatch */
  2715. /* the va_list invocation form */
  2716. boolean   HIList_somDispatch(somToken* retValue,
  2717.         somId methodId,
  2718.         va_list ap)
  2719. {
  2720.    return SOM_ResolveD(this,HIList,SOMObject,somDispatch)
  2721.     (this,retValue,methodId,ap);
  2722. }
  2723.  
  2724. /* the varargs invocation form */
  2725. boolean   somDispatch(somToken* retValue,
  2726.         somId methodId,
  2727.         ...)
  2728. {
  2729.    va_list ap;
  2730.    va_start(ap, methodId);
  2731.       boolean __somResult = 
  2732.       (boolean) SOM_ResolveD(this,HIList,SOMObject,somDispatch)
  2733.     (this,retValue,methodId,ap);
  2734.    va_end(ap);
  2735.    return __somResult;
  2736. }
  2737.  
  2738. /* va_list method: somClassDispatch */
  2739. /* the va_list invocation form */
  2740. boolean   HIList_somClassDispatch(SOMClass* clsObj,
  2741.         somToken* retValue,
  2742.         somId methodId,
  2743.         va_list ap)
  2744. {
  2745.    return SOM_ResolveD(this,HIList,SOMObject,somClassDispatch)
  2746.     (this,clsObj,retValue,methodId,ap);
  2747. }
  2748.  
  2749. /* the varargs invocation form */
  2750. boolean   somClassDispatch(SOMClass* clsObj,
  2751.         somToken* retValue,
  2752.         somId methodId,
  2753.         ...)
  2754. {
  2755.    va_list ap;
  2756.    va_start(ap, methodId);
  2757.       boolean __somResult = 
  2758.       (boolean) SOM_ResolveD(this,HIList,SOMObject,somClassDispatch)
  2759.     (this,clsObj,retValue,methodId,ap);
  2760.    va_end(ap);
  2761.    return __somResult;
  2762. }
  2763.  
  2764. /* method: somCastObj */
  2765. boolean   somCastObj(SOMClass* cls)
  2766. {
  2767.    return SOM_ResolveD(this,HIList,SOMObject,somCastObj)
  2768.     (this,cls);
  2769. }
  2770.  
  2771. /* method: somResetObj */
  2772. boolean   somResetObj()
  2773. {
  2774.    return SOM_ResolveD(this,HIList,SOMObject,somResetObj)
  2775.     (this);
  2776. }
  2777.  
  2778. /* method: somPrintSelf */
  2779. SOMObject*   somPrintSelf()
  2780. {
  2781.    return SOM_ResolveD(this,HIList,SOMObject,somPrintSelf)
  2782.     (this);
  2783. }
  2784.  
  2785. /* method: somDumpSelf */
  2786. void   somDumpSelf(long level)
  2787. {
  2788.    SOM_ResolveD(this,HIList,SOMObject,somDumpSelf)
  2789.     (this,level);
  2790. }
  2791.  
  2792. /* method: somDumpSelfInt */
  2793. void   somDumpSelfInt(long level)
  2794. {
  2795.    SOM_ResolveD(this,HIList,SOMObject,somDumpSelfInt)
  2796.     (this,level);
  2797. }
  2798.  
  2799. };   /* HIList */
  2800.  
  2801.  
  2802.  
  2803. #endif       /* SOM_HIList_xh */
  2804.  
  2805. #ifndef SOM_HIMultipleSelectionList_xh
  2806. #define SOM_HIMultipleSelectionList_xh
  2807.  
  2808. class HIMultipleSelectionList;
  2809.  
  2810. #define HIMultipleSelectionList_MajorVersion 0
  2811. #define HIMultipleSelectionList_MinorVersion 0
  2812.  
  2813. /* C++ SOM defs */
  2814. #include <somcls.xh>
  2815. #include <somcm.xh>
  2816.  
  2817. /* C++ parent defs */
  2818. #ifndef SOM_HIList_xh
  2819. #include <HILists.xh>
  2820. #endif
  2821.  
  2822. #ifndef HIMultipleSelectionList_API
  2823. #define HIMultipleSelectionList_API
  2824. /*
  2825.  * -- The Class API
  2826.  */
  2827.  
  2828. /*
  2829.  * Start of user-defined types:
  2830.  */
  2831.  
  2832. /*
  2833.  * End of user-defined types.
  2834.  */
  2835.  
  2836. #ifdef OLDIBMSOMAPISUPPORT
  2837. #define HIMultipleSelectionListCClassData HIMultipleSelectionListClassData
  2838. #define HIMultipleSelectionListNewClass(major,minor) somNewVersionedClassReference(HIMultipleSelectionList,major,minor)
  2839. #endif
  2840.  
  2841. /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
  2842. #define HIMultipleSelectionListMetaClass SOMClass
  2843.  
  2844. #if PRAGMA_ALIGN_SUPPORTED
  2845. #  pragma options align=power
  2846. #endif
  2847.  
  2848. /* The API to the HIMultipleSelectionList class object, and the methods it introduces. */
  2849. SOMEXTERN struct HIMultipleSelectionListClassDataStructure {
  2850. #ifdef OLDIBMSOMAPISUPPORT
  2851.     SOMClass            *classObject;    /* always zero, use somNewClassReference instead */
  2852. #else
  2853.     long zero;
  2854. #endif
  2855.     somStaticClassInfo *sci;
  2856.     somDToken        instanceDataToken;
  2857.     long reserved [3];
  2858.     somMToken InitMultipleSelectionList;
  2859.     somMToken SetItemSelectedState;
  2860.     somMToken GetItemSelectedState;
  2861.     somMToken GetSelectedItems;
  2862. } SOMDLINK HIMultipleSelectionListClassData;
  2863.  
  2864. #if PRAGMA_ALIGN_SUPPORTED
  2865. #  pragma options align=reset
  2866. #endif
  2867.  
  2868. #if !defined(HIMultipleSelectionList_Class_Source) && !defined(SOM_Module_hilists_Source)
  2869. #if PRAGMA_IMPORT_SUPPORTED
  2870. #pragma import list HIMultipleSelectionListClassData
  2871. #endif
  2872. #endif
  2873.  
  2874.  
  2875. /*
  2876.  * -- Typedefs for HIMultipleSelectionList Method Procedures
  2877.  */
  2878. SOMEXTERN {
  2879. typedef OSStatus   (* SOMLINK somTD_HIMultipleSelectionList_InitMultipleSelectionList)(HIMultipleSelectionList *somSelf, Environment *ev,
  2880.         RefLabel* identifier,
  2881.         HIWindow* window,
  2882.         Rect* bounds,
  2883.         HIItemStorage* itemStorage);
  2884. typedef OSStatus   (* SOMLINK somTD_HIMultipleSelectionList_SetItemSelectedState)(HIMultipleSelectionList *somSelf, Environment *ev,
  2885.         HIItemIndex index,
  2886.         HIItemState selectedState);
  2887. typedef HIItemState   (* SOMLINK somTD_HIMultipleSelectionList_GetItemSelectedState)(HIMultipleSelectionList *somSelf, Environment *ev,
  2888.         HIItemIndex index);
  2889. typedef OSStatus   (* SOMLINK somTD_HIMultipleSelectionList_GetSelectedItems)(HIMultipleSelectionList *somSelf, Environment *ev,
  2890.         UInt32 requestedCount,
  2891.         UInt32* actualCount,
  2892.         HIItemIndex* indexArray);
  2893.  
  2894. /*
  2895.  * -- Typedefs for Inherited Methods
  2896.  */
  2897. typedef OSStatus   (* SOMLINK somTD_HIMultipleSelectionList_InitList)(HIMultipleSelectionList *somSelf, Environment *ev,
  2898.         RefLabel* identifier,
  2899.         HIWindow* window,
  2900.         Rect* bounds,
  2901.         HIItemStorage* itemStorage);
  2902. typedef OSStatus   (* SOMLINK somTD_HIMultipleSelectionList_InitAbstractList)(HIMultipleSelectionList *somSelf, Environment *ev,
  2903.         RefLabel* identifier,
  2904.         HIWindow* window,
  2905.         Rect* bounds);
  2906. typedef OSStatus   (* SOMLINK somTD_HIMultipleSelectionList_AddItems)(HIMultipleSelectionList *somSelf, Environment *ev,
  2907.         HIItemIndex index,
  2908.         UInt32 numItems);
  2909. typedef OSStatus   (* SOMLINK somTD_HIMultipleSelectionList_DeleteItem)(HIMultipleSelectionList *somSelf, Environment *ev,
  2910.         HIItemIndex index);
  2911. typedef OSStatus   (* SOMLINK somTD_HIMultipleSelectionList_SetItemImage)(HIMultipleSelectionList *somSelf, Environment *ev,
  2912.         HIItemIndex index,
  2913.         ConstHIImageRef imageRef,
  2914.         HIAdoptionFlags imageAdoptionFlags);
  2915. typedef OSStatus   (* SOMLINK somTD_HIMultipleSelectionList_GetItemImage)(HIMultipleSelectionList *somSelf, Environment *ev,
  2916.         HIItemIndex index,
  2917.         HIImageRef* imageRefPtr);
  2918. typedef OSStatus   (* SOMLINK somTD_HIMultipleSelectionList_SetItemMark)(HIMultipleSelectionList *somSelf, Environment *ev,
  2919.         HIItemIndex index,
  2920.         UInt16 markChar);
  2921. typedef UInt16   (* SOMLINK somTD_HIMultipleSelectionList_GetItemMark)(HIMultipleSelectionList *somSelf, Environment *ev,
  2922.         HIItemIndex index);
  2923. typedef OSStatus   (* SOMLINK somTD_HIMultipleSelectionList_SetItemIcon)(HIMultipleSelectionList *somSelf, Environment *ev,
  2924.         HIItemIndex index,
  2925.         Handle iconSuite);
  2926. typedef Handle   (* SOMLINK somTD_HIMultipleSelectionList_GetItemIcon)(HIMultipleSelectionList *somSelf, Environment *ev,
  2927.         HIItemIndex index);
  2928. typedef OSStatus   (* SOMLINK somTD_HIMultipleSelectionList_SetItemChild)(HIMultipleSelectionList *somSelf, Environment *ev,
  2929.         HIItemIndex index,
  2930.         HIAbstractList* child);
  2931. typedef OSStatus   (* SOMLINK somTD_HIMultipleSelectionList_GetItemChild)(HIMultipleSelectionList *somSelf, Environment *ev,
  2932.         HIItemIndex index,
  2933.         HIAbstractList** child);
  2934. typedef OSStatus   (* SOMLINK somTD_HIMultipleSelectionList_SetItemEnabledState)(HIMultipleSelectionList *somSelf, Environment *ev,
  2935.         HIItemIndex index,
  2936.         HIItemState enableState);
  2937. typedef HIItemState   (* SOMLINK somTD_HIMultipleSelectionList_GetItemEnabledState)(HIMultipleSelectionList *somSelf, Environment *ev,
  2938.         HIItemIndex index);
  2939. typedef OSStatus   (* SOMLINK somTD_HIMultipleSelectionList_SetItemAttributes)(HIMultipleSelectionList *somSelf, Environment *ev,
  2940.         HIItemIndex index,
  2941.         HIItemAttributes attributes);
  2942. typedef HIItemAttributes   (* SOMLINK somTD_HIMultipleSelectionList_GetItemAttributes)(HIMultipleSelectionList *somSelf, Environment *ev,
  2943.         HIItemIndex index);
  2944. typedef OSStatus   (* SOMLINK somTD_HIMultipleSelectionList_SetItemRefLabel)(HIMultipleSelectionList *somSelf, Environment *ev,
  2945.         HIItemIndex index,
  2946.         RefLabel* identifier);
  2947. typedef OSStatus   (* SOMLINK somTD_HIMultipleSelectionList_GetItemRefLabel)(HIMultipleSelectionList *somSelf, Environment *ev,
  2948.         HIItemIndex index,
  2949.         RefLabel* identifier);
  2950. typedef UInt32   (* SOMLINK somTD_HIMultipleSelectionList_GetItemCount)(HIMultipleSelectionList *somSelf, Environment *ev);
  2951. typedef void   (* SOMLINK somTD_HIMultipleSelectionList_SelectItem)(HIMultipleSelectionList *somSelf, Environment *ev,
  2952.         HIItemIndex index);
  2953. typedef void   (* SOMLINK somTD_HIMultipleSelectionList_DeselectItem)(HIMultipleSelectionList *somSelf, Environment *ev,
  2954.         HIItemIndex index);
  2955. typedef HIItemIndex   (* SOMLINK somTD_HIMultipleSelectionList_GetSelectedItem)(HIMultipleSelectionList *somSelf, Environment *ev);
  2956. typedef OSStatus   (* SOMLINK somTD_HIMultipleSelectionList_AddItemCollectionItem)(HIMultipleSelectionList *somSelf, Environment *ev,
  2957.         HIItemIndex index,
  2958.         CollectionTag tag,
  2959.         UInt32 dataSize,
  2960.         void* data);
  2961. typedef OSStatus   (* SOMLINK somTD_HIMultipleSelectionList_GetItemCollectionItemData)(HIMultipleSelectionList *somSelf, Environment *ev,
  2962.         HIItemIndex index,
  2963.         CollectionTag tag,
  2964.         UInt32 dataSizeIn,
  2965.         UInt32* dataSizeOut,
  2966.         void* data);
  2967. typedef OSStatus   (* SOMLINK somTD_HIMultipleSelectionList_RemoveItemCollectionItem)(HIMultipleSelectionList *somSelf, Environment *ev,
  2968.         HIItemIndex index,
  2969.         CollectionTag tag);
  2970. typedef HIEmbeddingPanel*   (* SOMLINK somTD_HIMultipleSelectionList_GetEmbeddingParent)(HIMultipleSelectionList *somSelf, Environment *ev);
  2971. typedef OSStatus   (* SOMLINK somTD_HIMultipleSelectionList_InitPanel)(HIMultipleSelectionList *somSelf, Environment *ev,
  2972.         RefLabel* identifier,
  2973.         HIWindow* window,
  2974.         Rect* bounds);
  2975. typedef OSStatus   (* SOMLINK somTD_HIMultipleSelectionList_RegisterInterestInAppleEvent)(HIMultipleSelectionList *somSelf, Environment *ev,
  2976.         AEHandlerTableRef table,
  2977.         AEEventClass eventClass,
  2978.         AEEventID eventID,
  2979.         HIEventRoutingType eventRouting);
  2980. typedef boolean   (* SOMLINK somTD_HIMultipleSelectionList_HasValidContent)(HIMultipleSelectionList *somSelf, Environment *ev);
  2981. typedef OSStatus   (* SOMLINK somTD_HIMultipleSelectionList_GetDeepCollectionItemData)(HIMultipleSelectionList *somSelf, Environment *ev,
  2982.         CollectionTag tag,
  2983.         SInt32 id,
  2984.         ByteCount sizeAllowed,
  2985.         ByteCount* sizeReturned,
  2986.         void* itemData);
  2987. typedef HIWindow*   (* SOMLINK somTD_HIMultipleSelectionList_GetWindow)(HIMultipleSelectionList *somSelf, Environment *ev);
  2988. typedef CGrafPtr   (* SOMLINK somTD_HIMultipleSelectionList_GetPort)(HIMultipleSelectionList *somSelf, Environment *ev);
  2989. typedef void   (* SOMLINK somTD_HIMultipleSelectionList_GetRefLabel)(HIMultipleSelectionList *somSelf, Environment *ev,
  2990.         RefLabel* identifier);
  2991. typedef Collection   (* SOMLINK somTD_HIMultipleSelectionList_GetCollection)(HIMultipleSelectionList *somSelf, Environment *ev);
  2992. typedef OSStatus   (* SOMLINK somTD_HIMultipleSelectionList_Init)(HIMultipleSelectionList *somSelf, Environment *ev,
  2993.         RefLabel* identifier,
  2994.         Rect* boundingRect);
  2995. typedef void   (* SOMLINK somTD_HIMultipleSelectionList_Terminate)(HIMultipleSelectionList *somSelf, Environment *ev);
  2996. typedef HIObject*   (* SOMLINK somTD_HIMultipleSelectionList_Clone)(HIMultipleSelectionList *somSelf, Environment *ev);
  2997. typedef void   (* SOMLINK somTD_HIMultipleSelectionList_Release)(HIMultipleSelectionList *somSelf, Environment *ev);
  2998. typedef ItemCount   (* SOMLINK somTD_HIMultipleSelectionList_GetOwnerCount)(HIMultipleSelectionList *somSelf, Environment *ev);
  2999. typedef OSStatus   (* SOMLINK somTD_HIMultipleSelectionList_InitFromAERecord)(HIMultipleSelectionList *somSelf, Environment *ev,
  3000.         AESubDesc* baseInitializerData,
  3001.         AESubDesc* initializerDataForClass,
  3002.         HIAERecordDataFormat dataFormat);
  3003. typedef OSStatus   (* SOMLINK somTD_HIMultipleSelectionList_WriteToAERecord)(HIMultipleSelectionList *somSelf, Environment *ev,
  3004.         AERecord* dataForSubclass,
  3005.         AERecord* objectData,
  3006.         HIAERecordDataFormat dataFormat);
  3007. typedef void   (* SOMLINK somTD_HIMultipleSelectionList_CalculateOptimalSize)(HIMultipleSelectionList *somSelf, Environment *ev,
  3008.         SInt16* optimalWidth,
  3009.         SInt16* optimalHeight);
  3010. typedef void   (* SOMLINK somTD_HIMultipleSelectionList_GetBoundingRect)(HIMultipleSelectionList *somSelf, Environment *ev,
  3011.         HICoordinateSystem coordinate,
  3012.         Rect* boundingRect);
  3013. typedef void   (* SOMLINK somTD_HIMultipleSelectionList_SetBoundingRect)(HIMultipleSelectionList *somSelf, Environment *ev,
  3014.         HICoordinateSystem coordinate,
  3015.         Rect* newBoundingRect);
  3016. typedef void   (* SOMLINK somTD_HIMultipleSelectionList_SetPosition)(HIMultipleSelectionList *somSelf, Environment *ev,
  3017.         HICoordinateSystem coordinate,
  3018.         Point* newPosition);
  3019. typedef void   (* SOMLINK somTD_HIMultipleSelectionList_SetSize)(HIMultipleSelectionList *somSelf, Environment *ev,
  3020.         SInt16 width,
  3021.         SInt16 height);
  3022. typedef void   (* SOMLINK somTD_HIMultipleSelectionList_GetUpdateRect)(HIMultipleSelectionList *somSelf, Environment *ev,
  3023.         HICoordinateSystem coordinate,
  3024.         Rect* updateRect);
  3025. typedef void   (* SOMLINK somTD_HIMultipleSelectionList_Enable)(HIMultipleSelectionList *somSelf, Environment *ev);
  3026. typedef void   (* SOMLINK somTD_HIMultipleSelectionList_Disable)(HIMultipleSelectionList *somSelf, Environment *ev);
  3027. typedef boolean   (* SOMLINK somTD_HIMultipleSelectionList_IsEnabled)(HIMultipleSelectionList *somSelf, Environment *ev);
  3028. typedef void   (* SOMLINK somTD_HIMultipleSelectionList_Show)(HIMultipleSelectionList *somSelf, Environment *ev);
  3029. typedef void   (* SOMLINK somTD_HIMultipleSelectionList_Hide)(HIMultipleSelectionList *somSelf, Environment *ev);
  3030. typedef boolean   (* SOMLINK somTD_HIMultipleSelectionList_IsVisible)(HIMultipleSelectionList *somSelf, Environment *ev);
  3031. typedef OSStatus   (* SOMLINK somTD_HIMultipleSelectionList_HandleAppleEvent)(HIMultipleSelectionList *somSelf, Environment *ev,
  3032.         AEEventClass eventClass,
  3033.         AEEventID eventID,
  3034.         AppleEvent* theEvent,
  3035.         AppleEvent* reply,
  3036.         AEHandlerTableRef handlerTableRef);
  3037. typedef OSStatus   (* SOMLINK somTD_HIMultipleSelectionList_HandleActivate)(HIMultipleSelectionList *somSelf, Environment *ev,
  3038.         AppleEvent* theEvent,
  3039.         AppleEvent* reply,
  3040.         AEHandlerTableRef handlerTableRef);
  3041. typedef OSStatus   (* SOMLINK somTD_HIMultipleSelectionList_HandleDeactivate)(HIMultipleSelectionList *somSelf, Environment *ev,
  3042.         AppleEvent* theEvent,
  3043.         AppleEvent* reply,
  3044.         AEHandlerTableRef handlerTableRef);
  3045. typedef OSStatus   (* SOMLINK somTD_HIMultipleSelectionList_HandleNavigation)(HIMultipleSelectionList *somSelf, Environment *ev,
  3046.         SInt8 key,
  3047.         SInt8 keyCode,
  3048.         EventModifiers modifiers,
  3049.         AppleEvent* theEvent,
  3050.         AppleEvent* reply,
  3051.         AEHandlerTableRef handlerTableRef);
  3052. typedef OSStatus   (* SOMLINK somTD_HIMultipleSelectionList_HandleMouseDownInContent)(HIMultipleSelectionList *somSelf, Environment *ev,
  3053.         Point* portLocalWhere,
  3054.         EventModifiers modifiers,
  3055.         AppleEvent* theEvent,
  3056.         AppleEvent* reply,
  3057.         AEHandlerTableRef handlerTableRef);
  3058. typedef OSStatus   (* SOMLINK somTD_HIMultipleSelectionList_HandleMouseMovedInContent)(HIMultipleSelectionList *somSelf, Environment *ev,
  3059.         Point* portLocalWhere,
  3060.         EventModifiers modifiers,
  3061.         AppleEvent* theEvent,
  3062.         AppleEvent* reply,
  3063.         AEHandlerTableRef handlerTableRef);
  3064. typedef OSStatus   (* SOMLINK somTD_HIMultipleSelectionList_HandleMouseStoppedMovingInContent)(HIMultipleSelectionList *somSelf, Environment *ev,
  3065.         Point* portLocalWhere,
  3066.         EventModifiers modifiers,
  3067.         AppleEvent* theEvent,
  3068.         AppleEvent* reply,
  3069.         AEHandlerTableRef handlerTableRef);
  3070. typedef OSStatus   (* SOMLINK somTD_HIMultipleSelectionList_HandleMouseUpInContent)(HIMultipleSelectionList *somSelf, Environment *ev,
  3071.         Point* portLocalWhere,
  3072.         EventModifiers modifiers,
  3073.         AppleEvent* theEvent,
  3074.         AppleEvent* reply,
  3075.         AEHandlerTableRef handlerTableRef);
  3076. typedef void   (* SOMLINK somTD_HIMultipleSelectionList_TakeUserInputFocus)(HIMultipleSelectionList *somSelf, Environment *ev);
  3077. typedef void   (* SOMLINK somTD_HIMultipleSelectionList_ReleaseUserInputFocus)(HIMultipleSelectionList *somSelf, Environment *ev);
  3078. typedef boolean   (* SOMLINK somTD_HIMultipleSelectionList_HasUserInputFocus)(HIMultipleSelectionList *somSelf, Environment *ev);
  3079. typedef boolean   (* SOMLINK somTD_HIMultipleSelectionList_CanReleaseUserInputFocus)(HIMultipleSelectionList *somSelf, Environment *ev);
  3080. typedef void   (* SOMLINK somTD_HIMultipleSelectionList_SetUserInputFocusFlags)(HIMultipleSelectionList *somSelf, Environment *ev,
  3081.         HIUserInputFocusFlags flags);
  3082. typedef HIUserInputFocusFlags   (* SOMLINK somTD_HIMultipleSelectionList_GetUserInputFocusFlags)(HIMultipleSelectionList *somSelf, Environment *ev);
  3083. typedef OSStatus   (* SOMLINK somTD_HIMultipleSelectionList_SetTitle)(HIMultipleSelectionList *somSelf, Environment *ev,
  3084.         ConstHIImageRef title,
  3085.         HIAdoptionFlags disposalAdoptionFlags);
  3086. typedef OSStatus   (* SOMLINK somTD_HIMultipleSelectionList_GetTitle)(HIMultipleSelectionList *somSelf, Environment *ev,
  3087.         HIImageRef* title);
  3088. typedef void   (* SOMLINK somTD_HIMultipleSelectionList_Draw)(HIMultipleSelectionList *somSelf, Environment *ev,
  3089.         CGrafPtr whichPort,
  3090.         RgnHandle drawRgn);
  3091. typedef void   (* SOMLINK somTD_HIMultipleSelectionList_Erase)(HIMultipleSelectionList *somSelf, Environment *ev,
  3092.         CGrafPtr whichPort,
  3093.         RgnHandle eraseRgn);
  3094. typedef void   (* SOMLINK somTD_HIMultipleSelectionList_Invalidate)(HIMultipleSelectionList *somSelf, Environment *ev);
  3095. typedef HIDrawingMode   (* SOMLINK somTD_HIMultipleSelectionList_GetDrawingMode)(HIMultipleSelectionList *somSelf, Environment *ev);
  3096. typedef void   (* SOMLINK somTD_HIMultipleSelectionList_SetDrawingMode)(HIMultipleSelectionList *somSelf, Environment *ev,
  3097.         HIDrawingMode drawingMode);
  3098. typedef void   (* SOMLINK somTD_HIMultipleSelectionList_SetBackgroundPattern)(HIMultipleSelectionList *somSelf, Environment *ev,
  3099.         PixPatHandle backgroundPattern);
  3100. typedef PixPatHandle   (* SOMLINK somTD_HIMultipleSelectionList_GetBackgroundPattern)(HIMultipleSelectionList *somSelf, Environment *ev);
  3101. typedef void   (* SOMLINK somTD_HIMultipleSelectionList_Cut)(HIMultipleSelectionList *somSelf, Environment *ev);
  3102. typedef void   (* SOMLINK somTD_HIMultipleSelectionList_Copy)(HIMultipleSelectionList *somSelf, Environment *ev);
  3103. typedef void   (* SOMLINK somTD_HIMultipleSelectionList_Paste)(HIMultipleSelectionList *somSelf, Environment *ev);
  3104. typedef void   (* SOMLINK somTD_HIMultipleSelectionList_Clear)(HIMultipleSelectionList *somSelf, Environment *ev);
  3105. typedef HIClipboardSupportFlags   (* SOMLINK somTD_HIMultipleSelectionList_GetClipboardSupportFlags)(HIMultipleSelectionList *somSelf, Environment *ev);
  3106. typedef OSStatus   (* SOMLINK somTD_HIMultipleSelectionList_AddStateChangeCallback)(HIMultipleSelectionList *somSelf, Environment *ev,
  3107.         HIStateChangeCallbackProcPtr changedStateCallback,
  3108.         HIStateChangeCallbackRef* newCallbackRef);
  3109. typedef OSStatus   (* SOMLINK somTD_HIMultipleSelectionList_RemoveStateChangeCallback)(HIMultipleSelectionList *somSelf, Environment *ev,
  3110.         HIStateChangeCallbackRef callbackRefToRemove);
  3111. typedef OSStatus   (* SOMLINK somTD_HIMultipleSelectionList_GetHIObjectFromRefLabel)(Environment *ev,
  3112.         RefLabel* identifier,
  3113.         ItemCount requestedObjects,
  3114.         ItemCount* totalObjects,
  3115.         HIObject** theObjects);
  3116. typedef OSStatus   (* SOMLINK somTD_HIMultipleSelectionList_GetNewHIObject)(Environment *ev,
  3117.         AESubDesc* objectInitializer,
  3118.         HIObject** newObject);
  3119. typedef OSStatus   (* SOMLINK somTD_HIMultipleSelectionList_GetNewHIObjectFromResource)(Environment *ev,
  3120.         ResID objectInitializerResourceID,
  3121.         HIObject** newObject);
  3122. typedef void   (* SOMLINK somTD_HIMultipleSelectionList_DrawContent)(HIMultipleSelectionList *somSelf, Environment *ev,
  3123.         CGrafPtr whichPort,
  3124.         RgnHandle drawRgn);
  3125. typedef void   (* SOMLINK somTD_HIMultipleSelectionList_EraseContent)(HIMultipleSelectionList *somSelf, Environment *ev,
  3126.         CGrafPtr whichPort,
  3127.         RgnHandle regionToErase);
  3128. typedef void   (* SOMLINK somTD_HIMultipleSelectionList_TranslatePoint)(HIMultipleSelectionList *somSelf, Environment *ev,
  3129.         HICoordinateSystem translateFrom,
  3130.         HICoordinateSystem translateTo,
  3131.         Point* sourcePoint,
  3132.         Point* translatedPoint);
  3133. typedef void   (* SOMLINK somTD_HIMultipleSelectionList_TranslateRect)(HIMultipleSelectionList *somSelf, Environment *ev,
  3134.         HICoordinateSystem translateFrom,
  3135.         HICoordinateSystem translateTo,
  3136.         Rect* sourceRect,
  3137.         Rect* translatedRect);
  3138. typedef void   (* SOMLINK somTD_HIMultipleSelectionList_StateChanged)(HIMultipleSelectionList *somSelf, Environment *ev,
  3139.         HIStateChangeCodeCreator selectorCreator,
  3140.         HIStateChangeCode changedCode);
  3141. typedef void   (* SOMLINK somTD_HIMultipleSelectionList_SetClipboardSupportFlags)(HIMultipleSelectionList *somSelf, Environment *ev,
  3142.         HIClipboardSupportFlags flags);
  3143. typedef OSStatus   (* SOMLINK somTD_HIMultipleSelectionList_Verify)(HIMultipleSelectionList *somSelf, Environment *ev);
  3144. typedef void   (* SOMLINK somTD_HIMultipleSelectionList_somInit)(HIMultipleSelectionList *somSelf);
  3145. typedef void   (* SOMLINK somTD_HIMultipleSelectionList_somUninit)(HIMultipleSelectionList *somSelf);
  3146. typedef SOMObject*   (* SOMLINK somTD_HIMultipleSelectionList_somDuplicateReference)(HIMultipleSelectionList *somSelf);
  3147. typedef boolean   (* SOMLINK somTD_HIMultipleSelectionList_somCompareReference)(HIMultipleSelectionList *somSelf,
  3148.         SOMObject* anObject);
  3149. typedef SOMObject*   (* SOMLINK somTD_HIMultipleSelectionList_somRelease)(HIMultipleSelectionList *somSelf);
  3150. typedef void   (* SOMLINK somTD_HIMultipleSelectionList_somFree)(HIMultipleSelectionList *somSelf);
  3151. typedef boolean   (* SOMLINK somTD_HIMultipleSelectionList_somCanDelete)(HIMultipleSelectionList *somSelf);
  3152. typedef SOMClass*   (* SOMLINK somTD_HIMultipleSelectionList_somGetClass)(HIMultipleSelectionList *somSelf);
  3153. typedef corbastring   (* SOMLINK somTD_HIMultipleSelectionList_somGetClassName)(HIMultipleSelectionList *somSelf);
  3154. typedef long   (* SOMLINK somTD_HIMultipleSelectionList_somGetSize)(HIMultipleSelectionList *somSelf);
  3155. typedef boolean   (* SOMLINK somTD_HIMultipleSelectionList_somIsA)(HIMultipleSelectionList *somSelf,
  3156.         SOMClass* aClassObj);
  3157. typedef boolean   (* SOMLINK somTD_HIMultipleSelectionList_somRespondsTo)(HIMultipleSelectionList *somSelf,
  3158.         somId mId);
  3159. typedef boolean   (* SOMLINK somTD_HIMultipleSelectionList_somIsInstanceOf)(HIMultipleSelectionList *somSelf,
  3160.         SOMClass* aClassObj);
  3161. typedef boolean   (* SOMLINK somTD_HIMultipleSelectionList_somDispatch)(HIMultipleSelectionList *somSelf,
  3162.         somToken* retValue,
  3163.         somId methodId,
  3164.         va_list ap);
  3165. typedef boolean   (* SOMLINK somTD_HIMultipleSelectionList_somClassDispatch)(HIMultipleSelectionList *somSelf,
  3166.         SOMClass* clsObj,
  3167.         somToken* retValue,
  3168.         somId methodId,
  3169.         va_list ap);
  3170. typedef boolean   (* SOMLINK somTD_HIMultipleSelectionList_somCastObj)(HIMultipleSelectionList *somSelf,
  3171.         SOMClass* cls);
  3172. typedef boolean   (* SOMLINK somTD_HIMultipleSelectionList_somResetObj)(HIMultipleSelectionList *somSelf);
  3173. typedef SOMObject*   (* SOMLINK somTD_HIMultipleSelectionList_somPrintSelf)(HIMultipleSelectionList *somSelf);
  3174. typedef void   (* SOMLINK somTD_HIMultipleSelectionList_somDumpSelf)(HIMultipleSelectionList *somSelf,
  3175.         long level);
  3176. typedef void   (* SOMLINK somTD_HIMultipleSelectionList_somDumpSelfInt)(HIMultipleSelectionList *somSelf,
  3177.         long level);
  3178. }
  3179.  
  3180. #endif /* HIMultipleSelectionList_API */
  3181.  
  3182.  
  3183. /*
  3184.  * -- This emitter treats Method Tokens as Thunks by default.
  3185.  * -- Use the sc modifier "nothunks" to change this default
  3186.  */
  3187. #undef somresolve_
  3188. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  3189.  
  3190. /*
  3191.  * -- The C++ Wrapper Class for HIMultipleSelectionList
  3192.  */
  3193. class HIMultipleSelectionList : public HIList
  3194. {
  3195. public:
  3196.  
  3197. // HIMultipleSelectionList::new registers use of the class object, and then uses somNew
  3198. // to allocate memory and load the object method table pointer. 
  3199. void *operator new(size_t size)
  3200. {
  3201.     SOM_IgnoreWarning(size);
  3202.     // Allocate memory using the default allocator for HIMultipleSelectionList, and
  3203.     // clear mem & set method table pointer, call basic initialization
  3204.     return (void*) somNewObject(HIMultipleSelectionList);
  3205. }
  3206.  
  3207. // HIMultipleSelectionList::delete uses the default deallocator for the object's class.
  3208. void operator delete(void * obj)
  3209. {
  3210.     if (obj) {
  3211.         SOM_Resolve(obj,SOMObject,somFree)
  3212.            ( (SOMObject*) obj );
  3213.     }
  3214. }
  3215.  
  3216. /* method: InitMultipleSelectionList */
  3217. OSStatus   InitMultipleSelectionList(Environment *ev,
  3218.         RefLabel* identifier,
  3219.         HIWindow* window,
  3220.         Rect* bounds,
  3221.         HIItemStorage* itemStorage)
  3222. {
  3223.    return SOM_ResolveD(this,HIMultipleSelectionList,HIMultipleSelectionList,InitMultipleSelectionList)
  3224.     (this,ev,identifier,window,bounds,itemStorage);
  3225. }
  3226.  
  3227. /* method: SetItemSelectedState */
  3228. OSStatus   SetItemSelectedState(Environment *ev,
  3229.         HIItemIndex index,
  3230.         HIItemState selectedState)
  3231. {
  3232.    return SOM_ResolveD(this,HIMultipleSelectionList,HIMultipleSelectionList,SetItemSelectedState)
  3233.     (this,ev,index,selectedState);
  3234. }
  3235.  
  3236. /* method: GetItemSelectedState */
  3237. HIItemState   GetItemSelectedState(Environment *ev,
  3238.         HIItemIndex index)
  3239. {
  3240.    return SOM_ResolveD(this,HIMultipleSelectionList,HIMultipleSelectionList,GetItemSelectedState)
  3241.     (this,ev,index);
  3242. }
  3243.  
  3244. /* method: GetSelectedItems */
  3245. OSStatus   GetSelectedItems(Environment *ev,
  3246.         UInt32 requestedCount,
  3247.         UInt32* actualCount,
  3248.         HIItemIndex* indexArray)
  3249. {
  3250.    return SOM_ResolveD(this,HIMultipleSelectionList,HIMultipleSelectionList,GetSelectedItems)
  3251.     (this,ev,requestedCount,actualCount,indexArray);
  3252. }
  3253.  
  3254.  
  3255. /*
  3256.  * -- Inherited methods
  3257.  */
  3258. /* method: InitList */
  3259. OSStatus   InitList(Environment *ev,
  3260.         RefLabel* identifier,
  3261.         HIWindow* window,
  3262.         Rect* bounds,
  3263.         HIItemStorage* itemStorage)
  3264. {
  3265.    return SOM_ResolveD(this,HIMultipleSelectionList,HIList,InitList)
  3266.     (this,ev,identifier,window,bounds,itemStorage);
  3267. }
  3268.  
  3269. /* method: InitAbstractList */
  3270. OSStatus   InitAbstractList(Environment *ev,
  3271.         RefLabel* identifier,
  3272.         HIWindow* window,
  3273.         Rect* bounds)
  3274. {
  3275.    return SOM_ResolveD(this,HIMultipleSelectionList,HIAbstractList,InitAbstractList)
  3276.     (this,ev,identifier,window,bounds);
  3277. }
  3278.  
  3279. /* method: AddItems */
  3280. OSStatus   AddItems(Environment *ev,
  3281.         HIItemIndex index,
  3282.         UInt32 numItems)
  3283. {
  3284.    return SOM_ResolveD(this,HIMultipleSelectionList,HIAbstractList,AddItems)
  3285.     (this,ev,index,numItems);
  3286. }
  3287.  
  3288. /* method: DeleteItem */
  3289. OSStatus   DeleteItem(Environment *ev,
  3290.         HIItemIndex index)
  3291. {
  3292.    return SOM_ResolveD(this,HIMultipleSelectionList,HIAbstractList,DeleteItem)
  3293.     (this,ev,index);
  3294. }
  3295.  
  3296. /* method: SetItemImage */
  3297. OSStatus   SetItemImage(Environment *ev,
  3298.         HIItemIndex index,
  3299.         ConstHIImageRef imageRef,
  3300.         HIAdoptionFlags imageAdoptionFlags)
  3301. {
  3302.    return SOM_ResolveD(this,HIMultipleSelectionList,HIAbstractList,SetItemImage)
  3303.     (this,ev,index,imageRef,imageAdoptionFlags);
  3304. }
  3305.  
  3306. /* method: GetItemImage */
  3307. OSStatus   GetItemImage(Environment *ev,
  3308.         HIItemIndex index,
  3309.         HIImageRef* imageRefPtr)
  3310. {
  3311.    return SOM_ResolveD(this,HIMultipleSelectionList,HIAbstractList,GetItemImage)
  3312.     (this,ev,index,imageRefPtr);
  3313. }
  3314.  
  3315. /* method: SetItemMark */
  3316. OSStatus   SetItemMark(Environment *ev,
  3317.         HIItemIndex index,
  3318.         UInt16 markChar)
  3319. {
  3320.    return SOM_ResolveD(this,HIMultipleSelectionList,HIAbstractList,SetItemMark)
  3321.     (this,ev,index,markChar);
  3322. }
  3323.  
  3324. /* method: GetItemMark */
  3325. UInt16   GetItemMark(Environment *ev,
  3326.         HIItemIndex index)
  3327. {
  3328.    return SOM_ResolveD(this,HIMultipleSelectionList,HIAbstractList,GetItemMark)
  3329.     (this,ev,index);
  3330. }
  3331.  
  3332. /* method: SetItemIcon */
  3333. OSStatus   SetItemIcon(Environment *ev,
  3334.         HIItemIndex index,
  3335.         Handle iconSuite)
  3336. {
  3337.    return SOM_ResolveD(this,HIMultipleSelectionList,HIAbstractList,SetItemIcon)
  3338.     (this,ev,index,iconSuite);
  3339. }
  3340.  
  3341. /* method: GetItemIcon */
  3342. Handle   GetItemIcon(Environment *ev,
  3343.         HIItemIndex index)
  3344. {
  3345.    return SOM_ResolveD(this,HIMultipleSelectionList,HIAbstractList,GetItemIcon)
  3346.     (this,ev,index);
  3347. }
  3348.  
  3349. /* method: SetItemChild */
  3350. OSStatus   SetItemChild(Environment *ev,
  3351.         HIItemIndex index,
  3352.         HIAbstractList* child)
  3353. {
  3354.    return SOM_ResolveD(this,HIMultipleSelectionList,HIAbstractList,SetItemChild)
  3355.     (this,ev,index,child);
  3356. }
  3357.  
  3358. /* method: GetItemChild */
  3359. OSStatus   GetItemChild(Environment *ev,
  3360.         HIItemIndex index,
  3361.         HIAbstractList** child)
  3362. {
  3363.    return SOM_ResolveD(this,HIMultipleSelectionList,HIAbstractList,GetItemChild)
  3364.     (this,ev,index,child);
  3365. }
  3366.  
  3367. /* method: SetItemEnabledState */
  3368. OSStatus   SetItemEnabledState(Environment *ev,
  3369.         HIItemIndex index,
  3370.         HIItemState enableState)
  3371. {
  3372.    return SOM_ResolveD(this,HIMultipleSelectionList,HIAbstractList,SetItemEnabledState)
  3373.     (this,ev,index,enableState);
  3374. }
  3375.  
  3376. /* method: GetItemEnabledState */
  3377. HIItemState   GetItemEnabledState(Environment *ev,
  3378.         HIItemIndex index)
  3379. {
  3380.    return SOM_ResolveD(this,HIMultipleSelectionList,HIAbstractList,GetItemEnabledState)
  3381.     (this,ev,index);
  3382. }
  3383.  
  3384. /* method: SetItemAttributes */
  3385. OSStatus   SetItemAttributes(Environment *ev,
  3386.         HIItemIndex index,
  3387.         HIItemAttributes attributes)
  3388. {
  3389.    return SOM_ResolveD(this,HIMultipleSelectionList,HIAbstractList,SetItemAttributes)
  3390.     (this,ev,index,attributes);
  3391. }
  3392.  
  3393. /* method: GetItemAttributes */
  3394. HIItemAttributes   GetItemAttributes(Environment *ev,
  3395.         HIItemIndex index)
  3396. {
  3397.    return SOM_ResolveD(this,HIMultipleSelectionList,HIAbstractList,GetItemAttributes)
  3398.     (this,ev,index);
  3399. }
  3400.  
  3401. /* method: SetItemRefLabel */
  3402. OSStatus   SetItemRefLabel(Environment *ev,
  3403.         HIItemIndex index,
  3404.         RefLabel* identifier)
  3405. {
  3406.    return SOM_ResolveD(this,HIMultipleSelectionList,HIAbstractList,SetItemRefLabel)
  3407.     (this,ev,index,identifier);
  3408. }
  3409.  
  3410. /* method: GetItemRefLabel */
  3411. OSStatus   GetItemRefLabel(Environment *ev,
  3412.         HIItemIndex index,
  3413.         RefLabel* identifier)
  3414. {
  3415.    return SOM_ResolveD(this,HIMultipleSelectionList,HIAbstractList,GetItemRefLabel)
  3416.     (this,ev,index,identifier);
  3417. }
  3418.  
  3419. /* method: GetItemCount */
  3420. UInt32   GetItemCount(Environment *ev)
  3421. {
  3422.    return SOM_ResolveD(this,HIMultipleSelectionList,HIAbstractList,GetItemCount)
  3423.     (this,ev);
  3424. }
  3425.  
  3426. /* method: SelectItem */
  3427. void   SelectItem(Environment *ev,
  3428.         HIItemIndex index)
  3429. {
  3430.    SOM_ResolveD(this,HIMultipleSelectionList,HIAbstractList,SelectItem)
  3431.     (this,ev,index);
  3432. }
  3433.  
  3434. /* method: DeselectItem */
  3435. void   DeselectItem(Environment *ev,
  3436.         HIItemIndex index)
  3437. {
  3438.    SOM_ResolveD(this,HIMultipleSelectionList,HIAbstractList,DeselectItem)
  3439.     (this,ev,index);
  3440. }
  3441.  
  3442. /* method: GetSelectedItem */
  3443. HIItemIndex   GetSelectedItem(Environment *ev)
  3444. {
  3445.    return SOM_ResolveD(this,HIMultipleSelectionList,HIAbstractList,GetSelectedItem)
  3446.     (this,ev);
  3447. }
  3448.  
  3449. /* method: AddItemCollectionItem */
  3450. OSStatus   AddItemCollectionItem(Environment *ev,
  3451.         HIItemIndex index,
  3452.         CollectionTag tag,
  3453.         UInt32 dataSize,
  3454.         void* data)
  3455. {
  3456.    return SOM_ResolveD(this,HIMultipleSelectionList,HIAbstractList,AddItemCollectionItem)
  3457.     (this,ev,index,tag,dataSize,data);
  3458. }
  3459.  
  3460. /* method: GetItemCollectionItemData */
  3461. OSStatus   GetItemCollectionItemData(Environment *ev,
  3462.         HIItemIndex index,
  3463.         CollectionTag tag,
  3464.         UInt32 dataSizeIn,
  3465.         UInt32* dataSizeOut,
  3466.         void* data)
  3467. {
  3468.    return SOM_ResolveD(this,HIMultipleSelectionList,HIAbstractList,GetItemCollectionItemData)
  3469.     (this,ev,index,tag,dataSizeIn,dataSizeOut,data);
  3470. }
  3471.  
  3472. /* method: RemoveItemCollectionItem */
  3473. OSStatus   RemoveItemCollectionItem(Environment *ev,
  3474.         HIItemIndex index,
  3475.         CollectionTag tag)
  3476. {
  3477.    return SOM_ResolveD(this,HIMultipleSelectionList,HIAbstractList,RemoveItemCollectionItem)
  3478.     (this,ev,index,tag);
  3479. }
  3480.  
  3481. /* method: GetEmbeddingParent */
  3482. HIEmbeddingPanel*   GetEmbeddingParent(Environment *ev)
  3483. {
  3484.    return SOM_ResolveD(this,HIMultipleSelectionList,HIPanel,GetEmbeddingParent)
  3485.     (this,ev);
  3486. }
  3487.  
  3488. /* method: InitPanel */
  3489. OSStatus   InitPanel(Environment *ev,
  3490.         RefLabel* identifier,
  3491.         HIWindow* window,
  3492.         Rect* bounds)
  3493. {
  3494.    return SOM_ResolveD(this,HIMultipleSelectionList,HIPanel,InitPanel)
  3495.     (this,ev,identifier,window,bounds);
  3496. }
  3497.  
  3498. /* method: RegisterInterestInAppleEvent */
  3499. OSStatus   RegisterInterestInAppleEvent(Environment *ev,
  3500.         AEHandlerTableRef table,
  3501.         AEEventClass eventClass,
  3502.         AEEventID eventID,
  3503.         HIEventRoutingType eventRouting)
  3504. {
  3505.    return SOM_ResolveD(this,HIMultipleSelectionList,HIPanel,RegisterInterestInAppleEvent)
  3506.     (this,ev,table,eventClass,eventID,eventRouting);
  3507. }
  3508.  
  3509. /* method: HasValidContent */
  3510. boolean   HasValidContent(Environment *ev)
  3511. {
  3512.    return SOM_ResolveD(this,HIMultipleSelectionList,HIPanel,HasValidContent)
  3513.     (this,ev);
  3514. }
  3515.  
  3516. /* method: GetDeepCollectionItemData */
  3517. OSStatus   GetDeepCollectionItemData(Environment *ev,
  3518.         CollectionTag tag,
  3519.         SInt32 id,
  3520.         ByteCount sizeAllowed,
  3521.         ByteCount* sizeReturned,
  3522.         void* itemData)
  3523. {
  3524.    return SOM_ResolveD(this,HIMultipleSelectionList,HIPanel,GetDeepCollectionItemData)
  3525.     (this,ev,tag,id,sizeAllowed,sizeReturned,itemData);
  3526. }
  3527.  
  3528. /* method: GetWindow */
  3529. HIWindow*   GetWindow(Environment *ev)
  3530. {
  3531.    return SOM_ResolveD(this,HIMultipleSelectionList,HIObject,GetWindow)
  3532.     (this,ev);
  3533. }
  3534.  
  3535. /* method: GetPort */
  3536. CGrafPtr   GetPort(Environment *ev)
  3537. {
  3538.    return SOM_ResolveD(this,HIMultipleSelectionList,HIObject,GetPort)
  3539.     (this,ev);
  3540. }
  3541.  
  3542. /* method: GetRefLabel */
  3543. void   GetRefLabel(Environment *ev,
  3544.         RefLabel* identifier)
  3545. {
  3546.    SOM_ResolveD(this,HIMultipleSelectionList,HIObject,GetRefLabel)
  3547.     (this,ev,identifier);
  3548. }
  3549.  
  3550. /* method: GetCollection */
  3551. Collection   GetCollection(Environment *ev)
  3552. {
  3553.    return SOM_ResolveD(this,HIMultipleSelectionList,HIObject,GetCollection)
  3554.     (this,ev);
  3555. }
  3556.  
  3557. /* method: Init */
  3558. OSStatus   Init(Environment *ev,
  3559.         RefLabel* identifier,
  3560.         Rect* boundingRect)
  3561. {
  3562.    return SOM_ResolveD(this,HIMultipleSelectionList,HIObject,Init)
  3563.     (this,ev,identifier,boundingRect);
  3564. }
  3565.  
  3566. /* method: Terminate */
  3567. void   Terminate(Environment *ev)
  3568. {
  3569.    SOM_ResolveD(this,HIMultipleSelectionList,HIObject,Terminate)
  3570.     (this,ev);
  3571. }
  3572.  
  3573. /* method: Clone */
  3574. HIObject*   Clone(Environment *ev)
  3575. {
  3576.    return SOM_ResolveD(this,HIMultipleSelectionList,HIObject,Clone)
  3577.     (this,ev);
  3578. }
  3579.  
  3580. /* method: Release */
  3581. void   Release(Environment *ev)
  3582. {
  3583.    SOM_ResolveD(this,HIMultipleSelectionList,HIObject,Release)
  3584.     (this,ev);
  3585. }
  3586.  
  3587. /* method: GetOwnerCount */
  3588. ItemCount   GetOwnerCount(Environment *ev)
  3589. {
  3590.    return SOM_ResolveD(this,HIMultipleSelectionList,HIObject,GetOwnerCount)
  3591.     (this,ev);
  3592. }
  3593.  
  3594. /* method: InitFromAERecord */
  3595. OSStatus   InitFromAERecord(Environment *ev,
  3596.         AESubDesc* baseInitializerData,
  3597.         AESubDesc* initializerDataForClass,
  3598.         HIAERecordDataFormat dataFormat)
  3599. {
  3600.    return SOM_ResolveD(this,HIMultipleSelectionList,HIObject,InitFromAERecord)
  3601.     (this,ev,baseInitializerData,initializerDataForClass,dataFormat);
  3602. }
  3603.  
  3604. /* method: WriteToAERecord */
  3605. OSStatus   WriteToAERecord(Environment *ev,
  3606.         AERecord* dataForSubclass,
  3607.         AERecord* objectData,
  3608.         HIAERecordDataFormat dataFormat)
  3609. {
  3610.    return SOM_ResolveD(this,HIMultipleSelectionList,HIObject,WriteToAERecord)
  3611.     (this,ev,dataForSubclass,objectData,dataFormat);
  3612. }
  3613.  
  3614. /* method: CalculateOptimalSize */
  3615. void   CalculateOptimalSize(Environment *ev,
  3616.         SInt16* optimalWidth,
  3617.         SInt16* optimalHeight)
  3618. {
  3619.    SOM_ResolveD(this,HIMultipleSelectionList,HIObject,CalculateOptimalSize)
  3620.     (this,ev,optimalWidth,optimalHeight);
  3621. }
  3622.  
  3623. /* method: GetBoundingRect */
  3624. void   GetBoundingRect(Environment *ev,
  3625.         HICoordinateSystem coordinate,
  3626.         Rect* boundingRect)
  3627. {
  3628.    SOM_ResolveD(this,HIMultipleSelectionList,HIObject,GetBoundingRect)
  3629.     (this,ev,coordinate,boundingRect);
  3630. }
  3631.  
  3632. /* method: SetBoundingRect */
  3633. void   SetBoundingRect(Environment *ev,
  3634.         HICoordinateSystem coordinate,
  3635.         Rect* newBoundingRect)
  3636. {
  3637.    SOM_ResolveD(this,HIMultipleSelectionList,HIObject,SetBoundingRect)
  3638.     (this,ev,coordinate,newBoundingRect);
  3639. }
  3640.  
  3641. /* method: SetPosition */
  3642. void   SetPosition(Environment *ev,
  3643.         HICoordinateSystem coordinate,
  3644.         Point* newPosition)
  3645. {
  3646.    SOM_ResolveD(this,HIMultipleSelectionList,HIObject,SetPosition)
  3647.     (this,ev,coordinate,newPosition);
  3648. }
  3649.  
  3650. /* method: SetSize */
  3651. void   SetSize(Environment *ev,
  3652.         SInt16 width,
  3653.         SInt16 height)
  3654. {
  3655.    SOM_ResolveD(this,HIMultipleSelectionList,HIObject,SetSize)
  3656.     (this,ev,width,height);
  3657. }
  3658.  
  3659. /* method: GetUpdateRect */
  3660. void   GetUpdateRect(Environment *ev,
  3661.         HICoordinateSystem coordinate,
  3662.         Rect* updateRect)
  3663. {
  3664.    SOM_ResolveD(this,HIMultipleSelectionList,HIObject,GetUpdateRect)
  3665.     (this,ev,coordinate,updateRect);
  3666. }
  3667.  
  3668. /* method: Enable */
  3669. void   Enable(Environment *ev)
  3670. {
  3671.    SOM_ResolveD(this,HIMultipleSelectionList,HIObject,Enable)
  3672.     (this,ev);
  3673. }
  3674.  
  3675. /* method: Disable */
  3676. void   Disable(Environment *ev)
  3677. {
  3678.    SOM_ResolveD(this,HIMultipleSelectionList,HIObject,Disable)
  3679.     (this,ev);
  3680. }
  3681.  
  3682. /* method: IsEnabled */
  3683. boolean   IsEnabled(Environment *ev)
  3684. {
  3685.    return SOM_ResolveD(this,HIMultipleSelectionList,HIObject,IsEnabled)
  3686.     (this,ev);
  3687. }
  3688.  
  3689. /* method: Show */
  3690. void   Show(Environment *ev)
  3691. {
  3692.    SOM_ResolveD(this,HIMultipleSelectionList,HIObject,Show)
  3693.     (this,ev);
  3694. }
  3695.  
  3696. /* method: Hide */
  3697. void   Hide(Environment *ev)
  3698. {
  3699.    SOM_ResolveD(this,HIMultipleSelectionList,HIObject,Hide)
  3700.     (this,ev);
  3701. }
  3702.  
  3703. /* method: IsVisible */
  3704. boolean   IsVisible(Environment *ev)
  3705. {
  3706.    return SOM_ResolveD(this,HIMultipleSelectionList,HIObject,IsVisible)
  3707.     (this,ev);
  3708. }
  3709.  
  3710. /* method: HandleAppleEvent */
  3711. OSStatus   HandleAppleEvent(Environment *ev,
  3712.         AEEventClass eventClass,
  3713.         AEEventID eventID,
  3714.         AppleEvent* theEvent,
  3715.         AppleEvent* reply,
  3716.         AEHandlerTableRef handlerTableRef)
  3717. {
  3718.    return SOM_ResolveD(this,HIMultipleSelectionList,HIObject,HandleAppleEvent)
  3719.     (this,ev,eventClass,eventID,theEvent,reply,handlerTableRef);
  3720. }
  3721.  
  3722. /* method: HandleActivate */
  3723. OSStatus   HandleActivate(Environment *ev,
  3724.         AppleEvent* theEvent,
  3725.         AppleEvent* reply,
  3726.         AEHandlerTableRef handlerTableRef)
  3727. {
  3728.    return SOM_ResolveD(this,HIMultipleSelectionList,HIObject,HandleActivate)
  3729.     (this,ev,theEvent,reply,handlerTableRef);
  3730. }
  3731.  
  3732. /* method: HandleDeactivate */
  3733. OSStatus   HandleDeactivate(Environment *ev,
  3734.         AppleEvent* theEvent,
  3735.         AppleEvent* reply,
  3736.         AEHandlerTableRef handlerTableRef)
  3737. {
  3738.    return SOM_ResolveD(this,HIMultipleSelectionList,HIObject,HandleDeactivate)
  3739.     (this,ev,theEvent,reply,handlerTableRef);
  3740. }
  3741.  
  3742. /* method: HandleNavigation */
  3743. OSStatus   HandleNavigation(Environment *ev,
  3744.         SInt8 key,
  3745.         SInt8 keyCode,
  3746.         EventModifiers modifiers,
  3747.         AppleEvent* theEvent,
  3748.         AppleEvent* reply,
  3749.         AEHandlerTableRef handlerTableRef)
  3750. {
  3751.    return SOM_ResolveD(this,HIMultipleSelectionList,HIObject,HandleNavigation)
  3752.     (this,ev,key,keyCode,modifiers,theEvent,reply,handlerTableRef);
  3753. }
  3754.  
  3755. /* method: HandleMouseDownInContent */
  3756. OSStatus   HandleMouseDownInContent(Environment *ev,
  3757.         Point* portLocalWhere,
  3758.         EventModifiers modifiers,
  3759.         AppleEvent* theEvent,
  3760.         AppleEvent* reply,
  3761.         AEHandlerTableRef handlerTableRef)
  3762. {
  3763.    return SOM_ResolveD(this,HIMultipleSelectionList,HIObject,HandleMouseDownInContent)
  3764.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  3765. }
  3766.  
  3767. /* method: HandleMouseMovedInContent */
  3768. OSStatus   HandleMouseMovedInContent(Environment *ev,
  3769.         Point* portLocalWhere,
  3770.         EventModifiers modifiers,
  3771.         AppleEvent* theEvent,
  3772.         AppleEvent* reply,
  3773.         AEHandlerTableRef handlerTableRef)
  3774. {
  3775.    return SOM_ResolveD(this,HIMultipleSelectionList,HIObject,HandleMouseMovedInContent)
  3776.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  3777. }
  3778.  
  3779. /* method: HandleMouseStoppedMovingInContent */
  3780. OSStatus   HandleMouseStoppedMovingInContent(Environment *ev,
  3781.         Point* portLocalWhere,
  3782.         EventModifiers modifiers,
  3783.         AppleEvent* theEvent,
  3784.         AppleEvent* reply,
  3785.         AEHandlerTableRef handlerTableRef)
  3786. {
  3787.    return SOM_ResolveD(this,HIMultipleSelectionList,HIObject,HandleMouseStoppedMovingInContent)
  3788.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  3789. }
  3790.  
  3791. /* method: HandleMouseUpInContent */
  3792. OSStatus   HandleMouseUpInContent(Environment *ev,
  3793.         Point* portLocalWhere,
  3794.         EventModifiers modifiers,
  3795.         AppleEvent* theEvent,
  3796.         AppleEvent* reply,
  3797.         AEHandlerTableRef handlerTableRef)
  3798. {
  3799.    return SOM_ResolveD(this,HIMultipleSelectionList,HIObject,HandleMouseUpInContent)
  3800.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  3801. }
  3802.  
  3803. /* method: TakeUserInputFocus */
  3804. void   TakeUserInputFocus(Environment *ev)
  3805. {
  3806.    SOM_ResolveD(this,HIMultipleSelectionList,HIObject,TakeUserInputFocus)
  3807.     (this,ev);
  3808. }
  3809.  
  3810. /* method: ReleaseUserInputFocus */
  3811. void   ReleaseUserInputFocus(Environment *ev)
  3812. {
  3813.    SOM_ResolveD(this,HIMultipleSelectionList,HIObject,ReleaseUserInputFocus)
  3814.     (this,ev);
  3815. }
  3816.  
  3817. /* method: HasUserInputFocus */
  3818. boolean   HasUserInputFocus(Environment *ev)
  3819. {
  3820.    return SOM_ResolveD(this,HIMultipleSelectionList,HIObject,HasUserInputFocus)
  3821.     (this,ev);
  3822. }
  3823.  
  3824. /* method: CanReleaseUserInputFocus */
  3825. boolean   CanReleaseUserInputFocus(Environment *ev)
  3826. {
  3827.    return SOM_ResolveD(this,HIMultipleSelectionList,HIObject,CanReleaseUserInputFocus)
  3828.     (this,ev);
  3829. }
  3830.  
  3831. /* method: SetUserInputFocusFlags */
  3832. void   SetUserInputFocusFlags(Environment *ev,
  3833.         HIUserInputFocusFlags flags)
  3834. {
  3835.    SOM_ResolveD(this,HIMultipleSelectionList,HIObject,SetUserInputFocusFlags)
  3836.     (this,ev,flags);
  3837. }
  3838.  
  3839. /* method: GetUserInputFocusFlags */
  3840. HIUserInputFocusFlags   GetUserInputFocusFlags(Environment *ev)
  3841. {
  3842.    return SOM_ResolveD(this,HIMultipleSelectionList,HIObject,GetUserInputFocusFlags)
  3843.     (this,ev);
  3844. }
  3845.  
  3846. /* method: SetTitle */
  3847. OSStatus   SetTitle(Environment *ev,
  3848.         ConstHIImageRef title,
  3849.         HIAdoptionFlags disposalAdoptionFlags)
  3850. {
  3851.    return SOM_ResolveD(this,HIMultipleSelectionList,HIObject,SetTitle)
  3852.     (this,ev,title,disposalAdoptionFlags);
  3853. }
  3854.  
  3855. /* method: GetTitle */
  3856. OSStatus   GetTitle(Environment *ev,
  3857.         HIImageRef* title)
  3858. {
  3859.    return SOM_ResolveD(this,HIMultipleSelectionList,HIObject,GetTitle)
  3860.     (this,ev,title);
  3861. }
  3862.  
  3863. /* method: Draw */
  3864. void   Draw(Environment *ev,
  3865.         CGrafPtr whichPort,
  3866.         RgnHandle drawRgn)
  3867. {
  3868.    SOM_ResolveD(this,HIMultipleSelectionList,HIObject,Draw)
  3869.     (this,ev,whichPort,drawRgn);
  3870. }
  3871.  
  3872. /* method: Erase */
  3873. void   Erase(Environment *ev,
  3874.         CGrafPtr whichPort,
  3875.         RgnHandle eraseRgn)
  3876. {
  3877.    SOM_ResolveD(this,HIMultipleSelectionList,HIObject,Erase)
  3878.     (this,ev,whichPort,eraseRgn);
  3879. }
  3880.  
  3881. /* method: Invalidate */
  3882. void   Invalidate(Environment *ev)
  3883. {
  3884.    SOM_ResolveD(this,HIMultipleSelectionList,HIObject,Invalidate)
  3885.     (this,ev);
  3886. }
  3887.  
  3888. /* method: GetDrawingMode */
  3889. HIDrawingMode   GetDrawingMode(Environment *ev)
  3890. {
  3891.    return SOM_ResolveD(this,HIMultipleSelectionList,HIObject,GetDrawingMode)
  3892.     (this,ev);
  3893. }
  3894.  
  3895. /* method: SetDrawingMode */
  3896. void   SetDrawingMode(Environment *ev,
  3897.         HIDrawingMode drawingMode)
  3898. {
  3899.    SOM_ResolveD(this,HIMultipleSelectionList,HIObject,SetDrawingMode)
  3900.     (this,ev,drawingMode);
  3901. }
  3902.  
  3903. /* method: SetBackgroundPattern */
  3904. void   SetBackgroundPattern(Environment *ev,
  3905.         PixPatHandle backgroundPattern)
  3906. {
  3907.    SOM_ResolveD(this,HIMultipleSelectionList,HIObject,SetBackgroundPattern)
  3908.     (this,ev,backgroundPattern);
  3909. }
  3910.  
  3911. /* method: GetBackgroundPattern */
  3912. PixPatHandle   GetBackgroundPattern(Environment *ev)
  3913. {
  3914.    return SOM_ResolveD(this,HIMultipleSelectionList,HIObject,GetBackgroundPattern)
  3915.     (this,ev);
  3916. }
  3917.  
  3918. /* method: Cut */
  3919. void   Cut(Environment *ev)
  3920. {
  3921.    SOM_ResolveD(this,HIMultipleSelectionList,HIObject,Cut)
  3922.     (this,ev);
  3923. }
  3924.  
  3925. /* method: Copy */
  3926. void   Copy(Environment *ev)
  3927. {
  3928.    SOM_ResolveD(this,HIMultipleSelectionList,HIObject,Copy)
  3929.     (this,ev);
  3930. }
  3931.  
  3932. /* method: Paste */
  3933. void   Paste(Environment *ev)
  3934. {
  3935.    SOM_ResolveD(this,HIMultipleSelectionList,HIObject,Paste)
  3936.     (this,ev);
  3937. }
  3938.  
  3939. /* method: Clear */
  3940. void   Clear(Environment *ev)
  3941. {
  3942.    SOM_ResolveD(this,HIMultipleSelectionList,HIObject,Clear)
  3943.     (this,ev);
  3944. }
  3945.  
  3946. /* method: GetClipboardSupportFlags */
  3947. HIClipboardSupportFlags   GetClipboardSupportFlags(Environment *ev)
  3948. {
  3949.    return SOM_ResolveD(this,HIMultipleSelectionList,HIObject,GetClipboardSupportFlags)
  3950.     (this,ev);
  3951. }
  3952.  
  3953. /* method: AddStateChangeCallback */
  3954. OSStatus   AddStateChangeCallback(Environment *ev,
  3955.         HIStateChangeCallbackProcPtr changedStateCallback,
  3956.         HIStateChangeCallbackRef* newCallbackRef)
  3957. {
  3958.    return SOM_ResolveD(this,HIMultipleSelectionList,HIObject,AddStateChangeCallback)
  3959.     (this,ev,changedStateCallback,newCallbackRef);
  3960. }
  3961.  
  3962. /* method: RemoveStateChangeCallback */
  3963. OSStatus   RemoveStateChangeCallback(Environment *ev,
  3964.         HIStateChangeCallbackRef callbackRefToRemove)
  3965. {
  3966.    return SOM_ResolveD(this,HIMultipleSelectionList,HIObject,RemoveStateChangeCallback)
  3967.     (this,ev,callbackRefToRemove);
  3968. }
  3969.  
  3970. /* noself procedure: GetHIObjectFromRefLabel */
  3971. static OSStatus   GetHIObjectFromRefLabel(Environment *ev,
  3972.         RefLabel* identifier,
  3973.         ItemCount requestedObjects,
  3974.         ItemCount* totalObjects,
  3975.         HIObject** theObjects)
  3976. {
  3977. return ((somTD_HIMultipleSelectionList_GetHIObjectFromRefLabel)HIObjectClassData.GetHIObjectFromRefLabel)
  3978.     (ev,identifier,requestedObjects,totalObjects,theObjects);
  3979. }
  3980.  
  3981. /* noself procedure: GetNewHIObject */
  3982. static OSStatus   GetNewHIObject(Environment *ev,
  3983.         AESubDesc* objectInitializer,
  3984.         HIObject** newObject)
  3985. {
  3986. return ((somTD_HIMultipleSelectionList_GetNewHIObject)HIObjectClassData.GetNewHIObject)
  3987.     (ev,objectInitializer,newObject);
  3988. }
  3989.  
  3990. /* noself procedure: GetNewHIObjectFromResource */
  3991. static OSStatus   GetNewHIObjectFromResource(Environment *ev,
  3992.         ResID objectInitializerResourceID,
  3993.         HIObject** newObject)
  3994. {
  3995. return ((somTD_HIMultipleSelectionList_GetNewHIObjectFromResource)HIObjectClassData.GetNewHIObjectFromResource)
  3996.     (ev,objectInitializerResourceID,newObject);
  3997. }
  3998.  
  3999. /* method: DrawContent */
  4000. void   DrawContent(Environment *ev,
  4001.         CGrafPtr whichPort,
  4002.         RgnHandle drawRgn)
  4003. {
  4004.    SOM_ResolveD(this,HIMultipleSelectionList,HIObject,DrawContent)
  4005.     (this,ev,whichPort,drawRgn);
  4006. }
  4007.  
  4008. /* method: EraseContent */
  4009. void   EraseContent(Environment *ev,
  4010.         CGrafPtr whichPort,
  4011.         RgnHandle regionToErase)
  4012. {
  4013.    SOM_ResolveD(this,HIMultipleSelectionList,HIObject,EraseContent)
  4014.     (this,ev,whichPort,regionToErase);
  4015. }
  4016.  
  4017. /* method: TranslatePoint */
  4018. void   TranslatePoint(Environment *ev,
  4019.         HICoordinateSystem translateFrom,
  4020.         HICoordinateSystem translateTo,
  4021.         Point* sourcePoint,
  4022.         Point* translatedPoint)
  4023. {
  4024.    SOM_ResolveD(this,HIMultipleSelectionList,HIObject,TranslatePoint)
  4025.     (this,ev,translateFrom,translateTo,sourcePoint,translatedPoint);
  4026. }
  4027.  
  4028. /* method: TranslateRect */
  4029. void   TranslateRect(Environment *ev,
  4030.         HICoordinateSystem translateFrom,
  4031.         HICoordinateSystem translateTo,
  4032.         Rect* sourceRect,
  4033.         Rect* translatedRect)
  4034. {
  4035.    SOM_ResolveD(this,HIMultipleSelectionList,HIObject,TranslateRect)
  4036.     (this,ev,translateFrom,translateTo,sourceRect,translatedRect);
  4037. }
  4038.  
  4039. /* method: StateChanged */
  4040. void   StateChanged(Environment *ev,
  4041.         HIStateChangeCodeCreator selectorCreator,
  4042.         HIStateChangeCode changedCode)
  4043. {
  4044.    SOM_ResolveD(this,HIMultipleSelectionList,HIObject,StateChanged)
  4045.     (this,ev,selectorCreator,changedCode);
  4046. }
  4047.  
  4048. /* method: SetClipboardSupportFlags */
  4049. void   SetClipboardSupportFlags(Environment *ev,
  4050.         HIClipboardSupportFlags flags)
  4051. {
  4052.    SOM_ResolveD(this,HIMultipleSelectionList,HIObject,SetClipboardSupportFlags)
  4053.     (this,ev,flags);
  4054. }
  4055.  
  4056. /* method: Verify */
  4057. OSStatus   Verify(Environment *ev)
  4058. {
  4059.    return SOM_ResolveD(this,HIMultipleSelectionList,HIObject,Verify)
  4060.     (this,ev);
  4061. }
  4062.  
  4063. /* method: somInit */
  4064. void   somInit()
  4065. {
  4066.    SOM_ResolveD(this,HIMultipleSelectionList,SOMObject,somInit)
  4067.     (this);
  4068. }
  4069.  
  4070. /* method: somUninit */
  4071. void   somUninit()
  4072. {
  4073.    SOM_ResolveD(this,HIMultipleSelectionList,SOMObject,somUninit)
  4074.     (this);
  4075. }
  4076.  
  4077. /* method: somDuplicateReference */
  4078. SOMObject*   somDuplicateReference()
  4079. {
  4080.    return SOM_ResolveD(this,HIMultipleSelectionList,SOMObject,somDuplicateReference)
  4081.     (this);
  4082. }
  4083.  
  4084. /* method: somCompareReference */
  4085. boolean   somCompareReference(SOMObject* anObject)
  4086. {
  4087.    return SOM_ResolveD(this,HIMultipleSelectionList,SOMObject,somCompareReference)
  4088.     (this,anObject);
  4089. }
  4090.  
  4091. /* method: somRelease */
  4092. SOMObject*   somRelease()
  4093. {
  4094.    return SOM_ResolveD(this,HIMultipleSelectionList,SOMObject,somRelease)
  4095.     (this);
  4096. }
  4097.  
  4098. /* method: somFree */
  4099. void   somFree()
  4100. {
  4101.    SOM_ResolveD(this,HIMultipleSelectionList,SOMObject,somFree)
  4102.     (this);
  4103. }
  4104.  
  4105. /* method: somCanDelete */
  4106. boolean   somCanDelete()
  4107. {
  4108.    return SOM_ResolveD(this,HIMultipleSelectionList,SOMObject,somCanDelete)
  4109.     (this);
  4110. }
  4111.  
  4112. /* method: somGetClass */
  4113. SOMClass*   somGetClass()
  4114. {
  4115.    return SOM_ResolveD(this,HIMultipleSelectionList,SOMObject,somGetClass)
  4116.     (this);
  4117. }
  4118.  
  4119. /* method: somGetClassName */
  4120. corbastring   somGetClassName()
  4121. {
  4122.    return SOM_ResolveD(this,HIMultipleSelectionList,SOMObject,somGetClassName)
  4123.     (this);
  4124. }
  4125.  
  4126. /* method: somGetSize */
  4127. long   somGetSize()
  4128. {
  4129.    return SOM_ResolveD(this,HIMultipleSelectionList,SOMObject,somGetSize)
  4130.     (this);
  4131. }
  4132.  
  4133. /* method: somIsA */
  4134. boolean   somIsA(SOMClass* aClassObj)
  4135. {
  4136.    return SOM_ResolveD(this,HIMultipleSelectionList,SOMObject,somIsA)
  4137.     (this,aClassObj);
  4138. }
  4139.  
  4140. /* method: somRespondsTo */
  4141. boolean   somRespondsTo(somId mId)
  4142. {
  4143.    return SOM_ResolveD(this,HIMultipleSelectionList,SOMObject,somRespondsTo)
  4144.     (this,mId);
  4145. }
  4146.  
  4147. /* method: somIsInstanceOf */
  4148. boolean   somIsInstanceOf(SOMClass* aClassObj)
  4149. {
  4150.    return SOM_ResolveD(this,HIMultipleSelectionList,SOMObject,somIsInstanceOf)
  4151.     (this,aClassObj);
  4152. }
  4153.  
  4154. /* va_list method: somDispatch */
  4155. /* the va_list invocation form */
  4156. boolean   HIMultipleSelectionList_somDispatch(somToken* retValue,
  4157.         somId methodId,
  4158.         va_list ap)
  4159. {
  4160.    return SOM_ResolveD(this,HIMultipleSelectionList,SOMObject,somDispatch)
  4161.     (this,retValue,methodId,ap);
  4162. }
  4163.  
  4164. /* the varargs invocation form */
  4165. boolean   somDispatch(somToken* retValue,
  4166.         somId methodId,
  4167.         ...)
  4168. {
  4169.    va_list ap;
  4170.    va_start(ap, methodId);
  4171.       boolean __somResult = 
  4172.       (boolean) SOM_ResolveD(this,HIMultipleSelectionList,SOMObject,somDispatch)
  4173.     (this,retValue,methodId,ap);
  4174.    va_end(ap);
  4175.    return __somResult;
  4176. }
  4177.  
  4178. /* va_list method: somClassDispatch */
  4179. /* the va_list invocation form */
  4180. boolean   HIMultipleSelectionList_somClassDispatch(SOMClass* clsObj,
  4181.         somToken* retValue,
  4182.         somId methodId,
  4183.         va_list ap)
  4184. {
  4185.    return SOM_ResolveD(this,HIMultipleSelectionList,SOMObject,somClassDispatch)
  4186.     (this,clsObj,retValue,methodId,ap);
  4187. }
  4188.  
  4189. /* the varargs invocation form */
  4190. boolean   somClassDispatch(SOMClass* clsObj,
  4191.         somToken* retValue,
  4192.         somId methodId,
  4193.         ...)
  4194. {
  4195.    va_list ap;
  4196.    va_start(ap, methodId);
  4197.       boolean __somResult = 
  4198.       (boolean) SOM_ResolveD(this,HIMultipleSelectionList,SOMObject,somClassDispatch)
  4199.     (this,clsObj,retValue,methodId,ap);
  4200.    va_end(ap);
  4201.    return __somResult;
  4202. }
  4203.  
  4204. /* method: somCastObj */
  4205. boolean   somCastObj(SOMClass* cls)
  4206. {
  4207.    return SOM_ResolveD(this,HIMultipleSelectionList,SOMObject,somCastObj)
  4208.     (this,cls);
  4209. }
  4210.  
  4211. /* method: somResetObj */
  4212. boolean   somResetObj()
  4213. {
  4214.    return SOM_ResolveD(this,HIMultipleSelectionList,SOMObject,somResetObj)
  4215.     (this);
  4216. }
  4217.  
  4218. /* method: somPrintSelf */
  4219. SOMObject*   somPrintSelf()
  4220. {
  4221.    return SOM_ResolveD(this,HIMultipleSelectionList,SOMObject,somPrintSelf)
  4222.     (this);
  4223. }
  4224.  
  4225. /* method: somDumpSelf */
  4226. void   somDumpSelf(long level)
  4227. {
  4228.    SOM_ResolveD(this,HIMultipleSelectionList,SOMObject,somDumpSelf)
  4229.     (this,level);
  4230. }
  4231.  
  4232. /* method: somDumpSelfInt */
  4233. void   somDumpSelfInt(long level)
  4234. {
  4235.    SOM_ResolveD(this,HIMultipleSelectionList,SOMObject,somDumpSelfInt)
  4236.     (this,level);
  4237. }
  4238.  
  4239. };   /* HIMultipleSelectionList */
  4240.  
  4241.  
  4242.  
  4243. #endif       /* SOM_HIMultipleSelectionList_xh */
  4244.  
  4245. #ifndef SOM_HIMenu_xh
  4246. #define SOM_HIMenu_xh
  4247.  
  4248. class HIMenu;
  4249.  
  4250. #define HIMenu_MajorVersion 0
  4251. #define HIMenu_MinorVersion 0
  4252.  
  4253. /* C++ SOM defs */
  4254. #include <somcls.xh>
  4255. #include <somcm.xh>
  4256.  
  4257. /* C++ parent defs */
  4258. #ifndef SOM_HIAbstractList_xh
  4259. #include <HILists.xh>
  4260. #endif
  4261.  
  4262. #ifndef HIMenu_API
  4263. #define HIMenu_API
  4264. /*
  4265.  * -- The Class API
  4266.  */
  4267.  
  4268. /*
  4269.  * Start of user-defined types:
  4270.  */
  4271.  
  4272. /*
  4273.  * End of user-defined types.
  4274.  */
  4275.  
  4276. #ifdef OLDIBMSOMAPISUPPORT
  4277. #define HIMenuCClassData HIMenuClassData
  4278. #define HIMenuNewClass(major,minor) somNewVersionedClassReference(HIMenu,major,minor)
  4279. #endif
  4280.  
  4281. /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
  4282. #define HIMenuMetaClass SOMClass
  4283.  
  4284. #if PRAGMA_ALIGN_SUPPORTED
  4285. #  pragma options align=power
  4286. #endif
  4287.  
  4288. /* The API to the HIMenu class object, and the methods it introduces. */
  4289. SOMEXTERN struct HIMenuClassDataStructure {
  4290. #ifdef OLDIBMSOMAPISUPPORT
  4291.     SOMClass            *classObject;    /* always zero, use somNewClassReference instead */
  4292. #else
  4293.     long zero;
  4294. #endif
  4295.     somStaticClassInfo *sci;
  4296.     somDToken        instanceDataToken;
  4297.     long reserved [3];
  4298.     somMToken InitMenu;
  4299.     somMToken SetItemAccelerator;
  4300.     somMToken GetItemAccelerator;
  4301.     somMToken SetItemAppleEvent;
  4302.     somMToken GetItemAppleEvent;
  4303.     somMToken SetNextMenu;
  4304.     somMToken GetNextMenu;
  4305.     somMToken GetMenuRef;
  4306.     somMToken PopDown;
  4307.     somMethodProc *SetRootHIMenu;
  4308.     somMethodProc *GetRootHIMenu;
  4309.     somMethodProc *SetMenuFlashCount;
  4310.     somMethodProc *GetMenuFlashCount;
  4311. } SOMDLINK HIMenuClassData;
  4312.  
  4313. #if PRAGMA_ALIGN_SUPPORTED
  4314. #  pragma options align=reset
  4315. #endif
  4316.  
  4317. #if !defined(HIMenu_Class_Source) && !defined(SOM_Module_hilists_Source)
  4318. #if PRAGMA_IMPORT_SUPPORTED
  4319. #pragma import list HIMenuClassData
  4320. #endif
  4321. #endif
  4322.  
  4323.  
  4324. /*
  4325.  * -- Typedefs for HIMenu Method Procedures
  4326.  */
  4327. SOMEXTERN {
  4328. typedef OSStatus   (* SOMLINK somTD_HIMenu_InitMenu)(HIMenu *somSelf, Environment *ev,
  4329.         RefLabel* identifier);
  4330. typedef OSStatus   (* SOMLINK somTD_HIMenu_SetItemAccelerator)(HIMenu *somSelf, Environment *ev,
  4331.         HIItemIndex index,
  4332.         UInt16 modifiers,
  4333.         UInt16 accelerator);
  4334. typedef OSStatus   (* SOMLINK somTD_HIMenu_GetItemAccelerator)(HIMenu *somSelf, Environment *ev,
  4335.         HIItemIndex index,
  4336.         UInt16* modifiers,
  4337.         UInt16* accelerator);
  4338. typedef OSStatus   (* SOMLINK somTD_HIMenu_SetItemAppleEvent)(HIMenu *somSelf, Environment *ev,
  4339.         HIItemIndex index,
  4340.         AppleEvent* theEvent);
  4341. typedef OSStatus   (* SOMLINK somTD_HIMenu_GetItemAppleEvent)(HIMenu *somSelf, Environment *ev,
  4342.         HIItemIndex index,
  4343.         AppleEvent* theEvent);
  4344. typedef OSStatus   (* SOMLINK somTD_HIMenu_SetNextMenu)(HIMenu *somSelf, Environment *ev,
  4345.         HIMenu* nextMenu);
  4346. typedef OSStatus   (* SOMLINK somTD_HIMenu_GetNextMenu)(HIMenu *somSelf, Environment *ev,
  4347.         HIMenu** nextMenu);
  4348. typedef void   (* SOMLINK somTD_HIMenu_SetRootHIMenu)(Environment *ev,
  4349.         HIMenu* rootMenuPanel);
  4350. typedef HIMenu*   (* SOMLINK somTD_HIMenu_GetRootHIMenu)(Environment *ev);
  4351. typedef void   (* SOMLINK somTD_HIMenu_SetMenuFlashCount)(Environment *ev,
  4352.         UInt32 count);
  4353. typedef UInt32   (* SOMLINK somTD_HIMenu_GetMenuFlashCount)(Environment *ev);
  4354.  
  4355. /*
  4356.  * -- Typedefs for Inherited Methods
  4357.  */
  4358. typedef OSStatus   (* SOMLINK somTD_HIMenu_InitAbstractList)(HIMenu *somSelf, Environment *ev,
  4359.         RefLabel* identifier,
  4360.         HIWindow* window,
  4361.         Rect* bounds);
  4362. typedef OSStatus   (* SOMLINK somTD_HIMenu_AddItems)(HIMenu *somSelf, Environment *ev,
  4363.         HIItemIndex index,
  4364.         UInt32 numItems);
  4365. typedef OSStatus   (* SOMLINK somTD_HIMenu_DeleteItem)(HIMenu *somSelf, Environment *ev,
  4366.         HIItemIndex index);
  4367. typedef OSStatus   (* SOMLINK somTD_HIMenu_SetItemImage)(HIMenu *somSelf, Environment *ev,
  4368.         HIItemIndex index,
  4369.         ConstHIImageRef imageRef,
  4370.         HIAdoptionFlags imageAdoptionFlags);
  4371. typedef OSStatus   (* SOMLINK somTD_HIMenu_GetItemImage)(HIMenu *somSelf, Environment *ev,
  4372.         HIItemIndex index,
  4373.         HIImageRef* imageRefPtr);
  4374. typedef OSStatus   (* SOMLINK somTD_HIMenu_SetItemMark)(HIMenu *somSelf, Environment *ev,
  4375.         HIItemIndex index,
  4376.         UInt16 markChar);
  4377. typedef UInt16   (* SOMLINK somTD_HIMenu_GetItemMark)(HIMenu *somSelf, Environment *ev,
  4378.         HIItemIndex index);
  4379. typedef OSStatus   (* SOMLINK somTD_HIMenu_SetItemIcon)(HIMenu *somSelf, Environment *ev,
  4380.         HIItemIndex index,
  4381.         Handle iconSuite);
  4382. typedef Handle   (* SOMLINK somTD_HIMenu_GetItemIcon)(HIMenu *somSelf, Environment *ev,
  4383.         HIItemIndex index);
  4384. typedef OSStatus   (* SOMLINK somTD_HIMenu_SetItemChild)(HIMenu *somSelf, Environment *ev,
  4385.         HIItemIndex index,
  4386.         HIAbstractList* child);
  4387. typedef OSStatus   (* SOMLINK somTD_HIMenu_GetItemChild)(HIMenu *somSelf, Environment *ev,
  4388.         HIItemIndex index,
  4389.         HIAbstractList** child);
  4390. typedef OSStatus   (* SOMLINK somTD_HIMenu_SetItemEnabledState)(HIMenu *somSelf, Environment *ev,
  4391.         HIItemIndex index,
  4392.         HIItemState enableState);
  4393. typedef HIItemState   (* SOMLINK somTD_HIMenu_GetItemEnabledState)(HIMenu *somSelf, Environment *ev,
  4394.         HIItemIndex index);
  4395. typedef OSStatus   (* SOMLINK somTD_HIMenu_SetItemAttributes)(HIMenu *somSelf, Environment *ev,
  4396.         HIItemIndex index,
  4397.         HIItemAttributes attributes);
  4398. typedef HIItemAttributes   (* SOMLINK somTD_HIMenu_GetItemAttributes)(HIMenu *somSelf, Environment *ev,
  4399.         HIItemIndex index);
  4400. typedef OSStatus   (* SOMLINK somTD_HIMenu_SetItemRefLabel)(HIMenu *somSelf, Environment *ev,
  4401.         HIItemIndex index,
  4402.         RefLabel* identifier);
  4403. typedef OSStatus   (* SOMLINK somTD_HIMenu_GetItemRefLabel)(HIMenu *somSelf, Environment *ev,
  4404.         HIItemIndex index,
  4405.         RefLabel* identifier);
  4406. typedef UInt32   (* SOMLINK somTD_HIMenu_GetItemCount)(HIMenu *somSelf, Environment *ev);
  4407. typedef void   (* SOMLINK somTD_HIMenu_SelectItem)(HIMenu *somSelf, Environment *ev,
  4408.         HIItemIndex index);
  4409. typedef void   (* SOMLINK somTD_HIMenu_DeselectItem)(HIMenu *somSelf, Environment *ev,
  4410.         HIItemIndex index);
  4411. typedef HIItemIndex   (* SOMLINK somTD_HIMenu_GetSelectedItem)(HIMenu *somSelf, Environment *ev);
  4412. typedef OSStatus   (* SOMLINK somTD_HIMenu_AddItemCollectionItem)(HIMenu *somSelf, Environment *ev,
  4413.         HIItemIndex index,
  4414.         CollectionTag tag,
  4415.         UInt32 dataSize,
  4416.         void* data);
  4417. typedef OSStatus   (* SOMLINK somTD_HIMenu_GetItemCollectionItemData)(HIMenu *somSelf, Environment *ev,
  4418.         HIItemIndex index,
  4419.         CollectionTag tag,
  4420.         UInt32 dataSizeIn,
  4421.         UInt32* dataSizeOut,
  4422.         void* data);
  4423. typedef OSStatus   (* SOMLINK somTD_HIMenu_RemoveItemCollectionItem)(HIMenu *somSelf, Environment *ev,
  4424.         HIItemIndex index,
  4425.         CollectionTag tag);
  4426. typedef HIEmbeddingPanel*   (* SOMLINK somTD_HIMenu_GetEmbeddingParent)(HIMenu *somSelf, Environment *ev);
  4427. typedef OSStatus   (* SOMLINK somTD_HIMenu_InitPanel)(HIMenu *somSelf, Environment *ev,
  4428.         RefLabel* identifier,
  4429.         HIWindow* window,
  4430.         Rect* bounds);
  4431. typedef OSStatus   (* SOMLINK somTD_HIMenu_RegisterInterestInAppleEvent)(HIMenu *somSelf, Environment *ev,
  4432.         AEHandlerTableRef table,
  4433.         AEEventClass eventClass,
  4434.         AEEventID eventID,
  4435.         HIEventRoutingType eventRouting);
  4436. typedef boolean   (* SOMLINK somTD_HIMenu_HasValidContent)(HIMenu *somSelf, Environment *ev);
  4437. typedef OSStatus   (* SOMLINK somTD_HIMenu_GetDeepCollectionItemData)(HIMenu *somSelf, Environment *ev,
  4438.         CollectionTag tag,
  4439.         SInt32 id,
  4440.         ByteCount sizeAllowed,
  4441.         ByteCount* sizeReturned,
  4442.         void* itemData);
  4443. typedef HIWindow*   (* SOMLINK somTD_HIMenu_GetWindow)(HIMenu *somSelf, Environment *ev);
  4444. typedef CGrafPtr   (* SOMLINK somTD_HIMenu_GetPort)(HIMenu *somSelf, Environment *ev);
  4445. typedef void   (* SOMLINK somTD_HIMenu_GetRefLabel)(HIMenu *somSelf, Environment *ev,
  4446.         RefLabel* identifier);
  4447. typedef Collection   (* SOMLINK somTD_HIMenu_GetCollection)(HIMenu *somSelf, Environment *ev);
  4448. typedef OSStatus   (* SOMLINK somTD_HIMenu_Init)(HIMenu *somSelf, Environment *ev,
  4449.         RefLabel* identifier,
  4450.         Rect* boundingRect);
  4451. typedef void   (* SOMLINK somTD_HIMenu_Terminate)(HIMenu *somSelf, Environment *ev);
  4452. typedef HIObject*   (* SOMLINK somTD_HIMenu_Clone)(HIMenu *somSelf, Environment *ev);
  4453. typedef void   (* SOMLINK somTD_HIMenu_Release)(HIMenu *somSelf, Environment *ev);
  4454. typedef ItemCount   (* SOMLINK somTD_HIMenu_GetOwnerCount)(HIMenu *somSelf, Environment *ev);
  4455. typedef OSStatus   (* SOMLINK somTD_HIMenu_InitFromAERecord)(HIMenu *somSelf, Environment *ev,
  4456.         AESubDesc* baseInitializerData,
  4457.         AESubDesc* initializerDataForClass,
  4458.         HIAERecordDataFormat dataFormat);
  4459. typedef OSStatus   (* SOMLINK somTD_HIMenu_WriteToAERecord)(HIMenu *somSelf, Environment *ev,
  4460.         AERecord* dataForSubclass,
  4461.         AERecord* objectData,
  4462.         HIAERecordDataFormat dataFormat);
  4463. typedef void   (* SOMLINK somTD_HIMenu_CalculateOptimalSize)(HIMenu *somSelf, Environment *ev,
  4464.         SInt16* optimalWidth,
  4465.         SInt16* optimalHeight);
  4466. typedef void   (* SOMLINK somTD_HIMenu_GetBoundingRect)(HIMenu *somSelf, Environment *ev,
  4467.         HICoordinateSystem coordinate,
  4468.         Rect* boundingRect);
  4469. typedef void   (* SOMLINK somTD_HIMenu_SetBoundingRect)(HIMenu *somSelf, Environment *ev,
  4470.         HICoordinateSystem coordinate,
  4471.         Rect* newBoundingRect);
  4472. typedef void   (* SOMLINK somTD_HIMenu_SetPosition)(HIMenu *somSelf, Environment *ev,
  4473.         HICoordinateSystem coordinate,
  4474.         Point* newPosition);
  4475. typedef void   (* SOMLINK somTD_HIMenu_SetSize)(HIMenu *somSelf, Environment *ev,
  4476.         SInt16 width,
  4477.         SInt16 height);
  4478. typedef void   (* SOMLINK somTD_HIMenu_GetUpdateRect)(HIMenu *somSelf, Environment *ev,
  4479.         HICoordinateSystem coordinate,
  4480.         Rect* updateRect);
  4481. typedef void   (* SOMLINK somTD_HIMenu_Enable)(HIMenu *somSelf, Environment *ev);
  4482. typedef void   (* SOMLINK somTD_HIMenu_Disable)(HIMenu *somSelf, Environment *ev);
  4483. typedef boolean   (* SOMLINK somTD_HIMenu_IsEnabled)(HIMenu *somSelf, Environment *ev);
  4484. typedef void   (* SOMLINK somTD_HIMenu_Show)(HIMenu *somSelf, Environment *ev);
  4485. typedef void   (* SOMLINK somTD_HIMenu_Hide)(HIMenu *somSelf, Environment *ev);
  4486. typedef boolean   (* SOMLINK somTD_HIMenu_IsVisible)(HIMenu *somSelf, Environment *ev);
  4487. typedef OSStatus   (* SOMLINK somTD_HIMenu_HandleAppleEvent)(HIMenu *somSelf, Environment *ev,
  4488.         AEEventClass eventClass,
  4489.         AEEventID eventID,
  4490.         AppleEvent* theEvent,
  4491.         AppleEvent* reply,
  4492.         AEHandlerTableRef handlerTableRef);
  4493. typedef OSStatus   (* SOMLINK somTD_HIMenu_HandleActivate)(HIMenu *somSelf, Environment *ev,
  4494.         AppleEvent* theEvent,
  4495.         AppleEvent* reply,
  4496.         AEHandlerTableRef handlerTableRef);
  4497. typedef OSStatus   (* SOMLINK somTD_HIMenu_HandleDeactivate)(HIMenu *somSelf, Environment *ev,
  4498.         AppleEvent* theEvent,
  4499.         AppleEvent* reply,
  4500.         AEHandlerTableRef handlerTableRef);
  4501. typedef OSStatus   (* SOMLINK somTD_HIMenu_HandleNavigation)(HIMenu *somSelf, Environment *ev,
  4502.         SInt8 key,
  4503.         SInt8 keyCode,
  4504.         EventModifiers modifiers,
  4505.         AppleEvent* theEvent,
  4506.         AppleEvent* reply,
  4507.         AEHandlerTableRef handlerTableRef);
  4508. typedef OSStatus   (* SOMLINK somTD_HIMenu_HandleMouseDownInContent)(HIMenu *somSelf, Environment *ev,
  4509.         Point* portLocalWhere,
  4510.         EventModifiers modifiers,
  4511.         AppleEvent* theEvent,
  4512.         AppleEvent* reply,
  4513.         AEHandlerTableRef handlerTableRef);
  4514. typedef OSStatus   (* SOMLINK somTD_HIMenu_HandleMouseMovedInContent)(HIMenu *somSelf, Environment *ev,
  4515.         Point* portLocalWhere,
  4516.         EventModifiers modifiers,
  4517.         AppleEvent* theEvent,
  4518.         AppleEvent* reply,
  4519.         AEHandlerTableRef handlerTableRef);
  4520. typedef OSStatus   (* SOMLINK somTD_HIMenu_HandleMouseStoppedMovingInContent)(HIMenu *somSelf, Environment *ev,
  4521.         Point* portLocalWhere,
  4522.         EventModifiers modifiers,
  4523.         AppleEvent* theEvent,
  4524.         AppleEvent* reply,
  4525.         AEHandlerTableRef handlerTableRef);
  4526. typedef OSStatus   (* SOMLINK somTD_HIMenu_HandleMouseUpInContent)(HIMenu *somSelf, Environment *ev,
  4527.         Point* portLocalWhere,
  4528.         EventModifiers modifiers,
  4529.         AppleEvent* theEvent,
  4530.         AppleEvent* reply,
  4531.         AEHandlerTableRef handlerTableRef);
  4532. typedef void   (* SOMLINK somTD_HIMenu_TakeUserInputFocus)(HIMenu *somSelf, Environment *ev);
  4533. typedef void   (* SOMLINK somTD_HIMenu_ReleaseUserInputFocus)(HIMenu *somSelf, Environment *ev);
  4534. typedef boolean   (* SOMLINK somTD_HIMenu_HasUserInputFocus)(HIMenu *somSelf, Environment *ev);
  4535. typedef boolean   (* SOMLINK somTD_HIMenu_CanReleaseUserInputFocus)(HIMenu *somSelf, Environment *ev);
  4536. typedef void   (* SOMLINK somTD_HIMenu_SetUserInputFocusFlags)(HIMenu *somSelf, Environment *ev,
  4537.         HIUserInputFocusFlags flags);
  4538. typedef HIUserInputFocusFlags   (* SOMLINK somTD_HIMenu_GetUserInputFocusFlags)(HIMenu *somSelf, Environment *ev);
  4539. typedef OSStatus   (* SOMLINK somTD_HIMenu_SetTitle)(HIMenu *somSelf, Environment *ev,
  4540.         ConstHIImageRef title,
  4541.         HIAdoptionFlags disposalAdoptionFlags);
  4542. typedef OSStatus   (* SOMLINK somTD_HIMenu_GetTitle)(HIMenu *somSelf, Environment *ev,
  4543.         HIImageRef* title);
  4544. typedef void   (* SOMLINK somTD_HIMenu_Draw)(HIMenu *somSelf, Environment *ev,
  4545.         CGrafPtr whichPort,
  4546.         RgnHandle drawRgn);
  4547. typedef void   (* SOMLINK somTD_HIMenu_Erase)(HIMenu *somSelf, Environment *ev,
  4548.         CGrafPtr whichPort,
  4549.         RgnHandle eraseRgn);
  4550. typedef void   (* SOMLINK somTD_HIMenu_Invalidate)(HIMenu *somSelf, Environment *ev);
  4551. typedef HIDrawingMode   (* SOMLINK somTD_HIMenu_GetDrawingMode)(HIMenu *somSelf, Environment *ev);
  4552. typedef void   (* SOMLINK somTD_HIMenu_SetDrawingMode)(HIMenu *somSelf, Environment *ev,
  4553.         HIDrawingMode drawingMode);
  4554. typedef void   (* SOMLINK somTD_HIMenu_SetBackgroundPattern)(HIMenu *somSelf, Environment *ev,
  4555.         PixPatHandle backgroundPattern);
  4556. typedef PixPatHandle   (* SOMLINK somTD_HIMenu_GetBackgroundPattern)(HIMenu *somSelf, Environment *ev);
  4557. typedef void   (* SOMLINK somTD_HIMenu_Cut)(HIMenu *somSelf, Environment *ev);
  4558. typedef void   (* SOMLINK somTD_HIMenu_Copy)(HIMenu *somSelf, Environment *ev);
  4559. typedef void   (* SOMLINK somTD_HIMenu_Paste)(HIMenu *somSelf, Environment *ev);
  4560. typedef void   (* SOMLINK somTD_HIMenu_Clear)(HIMenu *somSelf, Environment *ev);
  4561. typedef HIClipboardSupportFlags   (* SOMLINK somTD_HIMenu_GetClipboardSupportFlags)(HIMenu *somSelf, Environment *ev);
  4562. typedef OSStatus   (* SOMLINK somTD_HIMenu_AddStateChangeCallback)(HIMenu *somSelf, Environment *ev,
  4563.         HIStateChangeCallbackProcPtr changedStateCallback,
  4564.         HIStateChangeCallbackRef* newCallbackRef);
  4565. typedef OSStatus   (* SOMLINK somTD_HIMenu_RemoveStateChangeCallback)(HIMenu *somSelf, Environment *ev,
  4566.         HIStateChangeCallbackRef callbackRefToRemove);
  4567. typedef OSStatus   (* SOMLINK somTD_HIMenu_GetHIObjectFromRefLabel)(Environment *ev,
  4568.         RefLabel* identifier,
  4569.         ItemCount requestedObjects,
  4570.         ItemCount* totalObjects,
  4571.         HIObject** theObjects);
  4572. typedef OSStatus   (* SOMLINK somTD_HIMenu_GetNewHIObject)(Environment *ev,
  4573.         AESubDesc* objectInitializer,
  4574.         HIObject** newObject);
  4575. typedef OSStatus   (* SOMLINK somTD_HIMenu_GetNewHIObjectFromResource)(Environment *ev,
  4576.         ResID objectInitializerResourceID,
  4577.         HIObject** newObject);
  4578. typedef void   (* SOMLINK somTD_HIMenu_DrawContent)(HIMenu *somSelf, Environment *ev,
  4579.         CGrafPtr whichPort,
  4580.         RgnHandle drawRgn);
  4581. typedef void   (* SOMLINK somTD_HIMenu_EraseContent)(HIMenu *somSelf, Environment *ev,
  4582.         CGrafPtr whichPort,
  4583.         RgnHandle regionToErase);
  4584. typedef void   (* SOMLINK somTD_HIMenu_TranslatePoint)(HIMenu *somSelf, Environment *ev,
  4585.         HICoordinateSystem translateFrom,
  4586.         HICoordinateSystem translateTo,
  4587.         Point* sourcePoint,
  4588.         Point* translatedPoint);
  4589. typedef void   (* SOMLINK somTD_HIMenu_TranslateRect)(HIMenu *somSelf, Environment *ev,
  4590.         HICoordinateSystem translateFrom,
  4591.         HICoordinateSystem translateTo,
  4592.         Rect* sourceRect,
  4593.         Rect* translatedRect);
  4594. typedef void   (* SOMLINK somTD_HIMenu_StateChanged)(HIMenu *somSelf, Environment *ev,
  4595.         HIStateChangeCodeCreator selectorCreator,
  4596.         HIStateChangeCode changedCode);
  4597. typedef void   (* SOMLINK somTD_HIMenu_SetClipboardSupportFlags)(HIMenu *somSelf, Environment *ev,
  4598.         HIClipboardSupportFlags flags);
  4599. typedef OSStatus   (* SOMLINK somTD_HIMenu_Verify)(HIMenu *somSelf, Environment *ev);
  4600. typedef void   (* SOMLINK somTD_HIMenu_somInit)(HIMenu *somSelf);
  4601. typedef void   (* SOMLINK somTD_HIMenu_somUninit)(HIMenu *somSelf);
  4602. typedef SOMObject*   (* SOMLINK somTD_HIMenu_somDuplicateReference)(HIMenu *somSelf);
  4603. typedef boolean   (* SOMLINK somTD_HIMenu_somCompareReference)(HIMenu *somSelf,
  4604.         SOMObject* anObject);
  4605. typedef SOMObject*   (* SOMLINK somTD_HIMenu_somRelease)(HIMenu *somSelf);
  4606. typedef void   (* SOMLINK somTD_HIMenu_somFree)(HIMenu *somSelf);
  4607. typedef boolean   (* SOMLINK somTD_HIMenu_somCanDelete)(HIMenu *somSelf);
  4608. typedef SOMClass*   (* SOMLINK somTD_HIMenu_somGetClass)(HIMenu *somSelf);
  4609. typedef corbastring   (* SOMLINK somTD_HIMenu_somGetClassName)(HIMenu *somSelf);
  4610. typedef long   (* SOMLINK somTD_HIMenu_somGetSize)(HIMenu *somSelf);
  4611. typedef boolean   (* SOMLINK somTD_HIMenu_somIsA)(HIMenu *somSelf,
  4612.         SOMClass* aClassObj);
  4613. typedef boolean   (* SOMLINK somTD_HIMenu_somRespondsTo)(HIMenu *somSelf,
  4614.         somId mId);
  4615. typedef boolean   (* SOMLINK somTD_HIMenu_somIsInstanceOf)(HIMenu *somSelf,
  4616.         SOMClass* aClassObj);
  4617. typedef boolean   (* SOMLINK somTD_HIMenu_somDispatch)(HIMenu *somSelf,
  4618.         somToken* retValue,
  4619.         somId methodId,
  4620.         va_list ap);
  4621. typedef boolean   (* SOMLINK somTD_HIMenu_somClassDispatch)(HIMenu *somSelf,
  4622.         SOMClass* clsObj,
  4623.         somToken* retValue,
  4624.         somId methodId,
  4625.         va_list ap);
  4626. typedef boolean   (* SOMLINK somTD_HIMenu_somCastObj)(HIMenu *somSelf,
  4627.         SOMClass* cls);
  4628. typedef boolean   (* SOMLINK somTD_HIMenu_somResetObj)(HIMenu *somSelf);
  4629. typedef SOMObject*   (* SOMLINK somTD_HIMenu_somPrintSelf)(HIMenu *somSelf);
  4630. typedef void   (* SOMLINK somTD_HIMenu_somDumpSelf)(HIMenu *somSelf,
  4631.         long level);
  4632. typedef void   (* SOMLINK somTD_HIMenu_somDumpSelfInt)(HIMenu *somSelf,
  4633.         long level);
  4634. }
  4635.  
  4636. #endif /* HIMenu_API */
  4637.  
  4638.  
  4639. /*
  4640.  * -- This emitter treats Method Tokens as Thunks by default.
  4641.  * -- Use the sc modifier "nothunks" to change this default
  4642.  */
  4643. #undef somresolve_
  4644. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  4645.  
  4646. /*
  4647.  * -- The C++ Wrapper Class for HIMenu
  4648.  */
  4649. class HIMenu : public HIAbstractList
  4650. {
  4651. public:
  4652.  
  4653. // HIMenu::new registers use of the class object, and then uses somNew
  4654. // to allocate memory and load the object method table pointer. 
  4655. void *operator new(size_t size)
  4656. {
  4657.     SOM_IgnoreWarning(size);
  4658.     // Allocate memory using the default allocator for HIMenu, and
  4659.     // clear mem & set method table pointer, call basic initialization
  4660.     return (void*) somNewObject(HIMenu);
  4661. }
  4662.  
  4663. // HIMenu::delete uses the default deallocator for the object's class.
  4664. void operator delete(void * obj)
  4665. {
  4666.     if (obj) {
  4667.         SOM_Resolve(obj,SOMObject,somFree)
  4668.            ( (SOMObject*) obj );
  4669.     }
  4670. }
  4671.  
  4672. /* method: InitMenu */
  4673. OSStatus   InitMenu(Environment *ev,
  4674.         RefLabel* identifier)
  4675. {
  4676.    return SOM_ResolveD(this,HIMenu,HIMenu,InitMenu)
  4677.     (this,ev,identifier);
  4678. }
  4679.  
  4680. /* method: SetItemAccelerator */
  4681. OSStatus   SetItemAccelerator(Environment *ev,
  4682.         HIItemIndex index,
  4683.         UInt16 modifiers,
  4684.         UInt16 accelerator)
  4685. {
  4686.    return SOM_ResolveD(this,HIMenu,HIMenu,SetItemAccelerator)
  4687.     (this,ev,index,modifiers,accelerator);
  4688. }
  4689.  
  4690. /* method: GetItemAccelerator */
  4691. OSStatus   GetItemAccelerator(Environment *ev,
  4692.         HIItemIndex index,
  4693.         UInt16* modifiers,
  4694.         UInt16* accelerator)
  4695. {
  4696.    return SOM_ResolveD(this,HIMenu,HIMenu,GetItemAccelerator)
  4697.     (this,ev,index,modifiers,accelerator);
  4698. }
  4699.  
  4700. /* method: SetItemAppleEvent */
  4701. OSStatus   SetItemAppleEvent(Environment *ev,
  4702.         HIItemIndex index,
  4703.         AppleEvent* theEvent)
  4704. {
  4705.    return SOM_ResolveD(this,HIMenu,HIMenu,SetItemAppleEvent)
  4706.     (this,ev,index,theEvent);
  4707. }
  4708.  
  4709. /* method: GetItemAppleEvent */
  4710. OSStatus   GetItemAppleEvent(Environment *ev,
  4711.         HIItemIndex index,
  4712.         AppleEvent* theEvent)
  4713. {
  4714.    return SOM_ResolveD(this,HIMenu,HIMenu,GetItemAppleEvent)
  4715.     (this,ev,index,theEvent);
  4716. }
  4717.  
  4718. /* method: SetNextMenu */
  4719. OSStatus   SetNextMenu(Environment *ev,
  4720.         HIMenu* nextMenu)
  4721. {
  4722.    return SOM_ResolveD(this,HIMenu,HIMenu,SetNextMenu)
  4723.     (this,ev,nextMenu);
  4724. }
  4725.  
  4726. /* method: GetNextMenu */
  4727. OSStatus   GetNextMenu(Environment *ev,
  4728.         HIMenu** nextMenu)
  4729. {
  4730.    return SOM_ResolveD(this,HIMenu,HIMenu,GetNextMenu)
  4731.     (this,ev,nextMenu);
  4732. }
  4733.  
  4734. /* noself procedure: SetRootHIMenu */
  4735. static void   SetRootHIMenu(Environment *ev,
  4736.         HIMenu* rootMenuPanel)
  4737. {
  4738. ((somTD_HIMenu_SetRootHIMenu)HIMenuClassData.SetRootHIMenu)
  4739.     (ev,rootMenuPanel);
  4740. }
  4741.  
  4742. /* noself procedure: GetRootHIMenu */
  4743. static HIMenu*   GetRootHIMenu(Environment *ev)
  4744. {
  4745. return ((somTD_HIMenu_GetRootHIMenu)HIMenuClassData.GetRootHIMenu)
  4746.     ( ev);
  4747. }
  4748.  
  4749. /* noself procedure: SetMenuFlashCount */
  4750. static void   SetMenuFlashCount(Environment *ev,
  4751.         UInt32 count)
  4752. {
  4753. ((somTD_HIMenu_SetMenuFlashCount)HIMenuClassData.SetMenuFlashCount)
  4754.     (ev,count);
  4755. }
  4756.  
  4757. /* noself procedure: GetMenuFlashCount */
  4758. static UInt32   GetMenuFlashCount(Environment *ev)
  4759. {
  4760. return ((somTD_HIMenu_GetMenuFlashCount)HIMenuClassData.GetMenuFlashCount)
  4761.     ( ev);
  4762. }
  4763.  
  4764.  
  4765. /*
  4766.  * -- Inherited methods
  4767.  */
  4768. /* method: InitAbstractList */
  4769. OSStatus   InitAbstractList(Environment *ev,
  4770.         RefLabel* identifier,
  4771.         HIWindow* window,
  4772.         Rect* bounds)
  4773. {
  4774.    return SOM_ResolveD(this,HIMenu,HIAbstractList,InitAbstractList)
  4775.     (this,ev,identifier,window,bounds);
  4776. }
  4777.  
  4778. /* method: AddItems */
  4779. OSStatus   AddItems(Environment *ev,
  4780.         HIItemIndex index,
  4781.         UInt32 numItems)
  4782. {
  4783.    return SOM_ResolveD(this,HIMenu,HIAbstractList,AddItems)
  4784.     (this,ev,index,numItems);
  4785. }
  4786.  
  4787. /* method: DeleteItem */
  4788. OSStatus   DeleteItem(Environment *ev,
  4789.         HIItemIndex index)
  4790. {
  4791.    return SOM_ResolveD(this,HIMenu,HIAbstractList,DeleteItem)
  4792.     (this,ev,index);
  4793. }
  4794.  
  4795. /* method: SetItemImage */
  4796. OSStatus   SetItemImage(Environment *ev,
  4797.         HIItemIndex index,
  4798.         ConstHIImageRef imageRef,
  4799.         HIAdoptionFlags imageAdoptionFlags)
  4800. {
  4801.    return SOM_ResolveD(this,HIMenu,HIAbstractList,SetItemImage)
  4802.     (this,ev,index,imageRef,imageAdoptionFlags);
  4803. }
  4804.  
  4805. /* method: GetItemImage */
  4806. OSStatus   GetItemImage(Environment *ev,
  4807.         HIItemIndex index,
  4808.         HIImageRef* imageRefPtr)
  4809. {
  4810.    return SOM_ResolveD(this,HIMenu,HIAbstractList,GetItemImage)
  4811.     (this,ev,index,imageRefPtr);
  4812. }
  4813.  
  4814. /* method: SetItemMark */
  4815. OSStatus   SetItemMark(Environment *ev,
  4816.         HIItemIndex index,
  4817.         UInt16 markChar)
  4818. {
  4819.    return SOM_ResolveD(this,HIMenu,HIAbstractList,SetItemMark)
  4820.     (this,ev,index,markChar);
  4821. }
  4822.  
  4823. /* method: GetItemMark */
  4824. UInt16   GetItemMark(Environment *ev,
  4825.         HIItemIndex index)
  4826. {
  4827.    return SOM_ResolveD(this,HIMenu,HIAbstractList,GetItemMark)
  4828.     (this,ev,index);
  4829. }
  4830.  
  4831. /* method: SetItemIcon */
  4832. OSStatus   SetItemIcon(Environment *ev,
  4833.         HIItemIndex index,
  4834.         Handle iconSuite)
  4835. {
  4836.    return SOM_ResolveD(this,HIMenu,HIAbstractList,SetItemIcon)
  4837.     (this,ev,index,iconSuite);
  4838. }
  4839.  
  4840. /* method: GetItemIcon */
  4841. Handle   GetItemIcon(Environment *ev,
  4842.         HIItemIndex index)
  4843. {
  4844.    return SOM_ResolveD(this,HIMenu,HIAbstractList,GetItemIcon)
  4845.     (this,ev,index);
  4846. }
  4847.  
  4848. /* method: SetItemChild */
  4849. OSStatus   SetItemChild(Environment *ev,
  4850.         HIItemIndex index,
  4851.         HIAbstractList* child)
  4852. {
  4853.    return SOM_ResolveD(this,HIMenu,HIAbstractList,SetItemChild)
  4854.     (this,ev,index,child);
  4855. }
  4856.  
  4857. /* method: GetItemChild */
  4858. OSStatus   GetItemChild(Environment *ev,
  4859.         HIItemIndex index,
  4860.         HIAbstractList** child)
  4861. {
  4862.    return SOM_ResolveD(this,HIMenu,HIAbstractList,GetItemChild)
  4863.     (this,ev,index,child);
  4864. }
  4865.  
  4866. /* method: SetItemEnabledState */
  4867. OSStatus   SetItemEnabledState(Environment *ev,
  4868.         HIItemIndex index,
  4869.         HIItemState enableState)
  4870. {
  4871.    return SOM_ResolveD(this,HIMenu,HIAbstractList,SetItemEnabledState)
  4872.     (this,ev,index,enableState);
  4873. }
  4874.  
  4875. /* method: GetItemEnabledState */
  4876. HIItemState   GetItemEnabledState(Environment *ev,
  4877.         HIItemIndex index)
  4878. {
  4879.    return SOM_ResolveD(this,HIMenu,HIAbstractList,GetItemEnabledState)
  4880.     (this,ev,index);
  4881. }
  4882.  
  4883. /* method: SetItemAttributes */
  4884. OSStatus   SetItemAttributes(Environment *ev,
  4885.         HIItemIndex index,
  4886.         HIItemAttributes attributes)
  4887. {
  4888.    return SOM_ResolveD(this,HIMenu,HIAbstractList,SetItemAttributes)
  4889.     (this,ev,index,attributes);
  4890. }
  4891.  
  4892. /* method: GetItemAttributes */
  4893. HIItemAttributes   GetItemAttributes(Environment *ev,
  4894.         HIItemIndex index)
  4895. {
  4896.    return SOM_ResolveD(this,HIMenu,HIAbstractList,GetItemAttributes)
  4897.     (this,ev,index);
  4898. }
  4899.  
  4900. /* method: SetItemRefLabel */
  4901. OSStatus   SetItemRefLabel(Environment *ev,
  4902.         HIItemIndex index,
  4903.         RefLabel* identifier)
  4904. {
  4905.    return SOM_ResolveD(this,HIMenu,HIAbstractList,SetItemRefLabel)
  4906.     (this,ev,index,identifier);
  4907. }
  4908.  
  4909. /* method: GetItemRefLabel */
  4910. OSStatus   GetItemRefLabel(Environment *ev,
  4911.         HIItemIndex index,
  4912.         RefLabel* identifier)
  4913. {
  4914.    return SOM_ResolveD(this,HIMenu,HIAbstractList,GetItemRefLabel)
  4915.     (this,ev,index,identifier);
  4916. }
  4917.  
  4918. /* method: GetItemCount */
  4919. UInt32   GetItemCount(Environment *ev)
  4920. {
  4921.    return SOM_ResolveD(this,HIMenu,HIAbstractList,GetItemCount)
  4922.     (this,ev);
  4923. }
  4924.  
  4925. /* method: SelectItem */
  4926. void   SelectItem(Environment *ev,
  4927.         HIItemIndex index)
  4928. {
  4929.    SOM_ResolveD(this,HIMenu,HIAbstractList,SelectItem)
  4930.     (this,ev,index);
  4931. }
  4932.  
  4933. /* method: DeselectItem */
  4934. void   DeselectItem(Environment *ev,
  4935.         HIItemIndex index)
  4936. {
  4937.    SOM_ResolveD(this,HIMenu,HIAbstractList,DeselectItem)
  4938.     (this,ev,index);
  4939. }
  4940.  
  4941. /* method: GetSelectedItem */
  4942. HIItemIndex   GetSelectedItem(Environment *ev)
  4943. {
  4944.    return SOM_ResolveD(this,HIMenu,HIAbstractList,GetSelectedItem)
  4945.     (this,ev);
  4946. }
  4947.  
  4948. /* method: AddItemCollectionItem */
  4949. OSStatus   AddItemCollectionItem(Environment *ev,
  4950.         HIItemIndex index,
  4951.         CollectionTag tag,
  4952.         UInt32 dataSize,
  4953.         void* data)
  4954. {
  4955.    return SOM_ResolveD(this,HIMenu,HIAbstractList,AddItemCollectionItem)
  4956.     (this,ev,index,tag,dataSize,data);
  4957. }
  4958.  
  4959. /* method: GetItemCollectionItemData */
  4960. OSStatus   GetItemCollectionItemData(Environment *ev,
  4961.         HIItemIndex index,
  4962.         CollectionTag tag,
  4963.         UInt32 dataSizeIn,
  4964.         UInt32* dataSizeOut,
  4965.         void* data)
  4966. {
  4967.    return SOM_ResolveD(this,HIMenu,HIAbstractList,GetItemCollectionItemData)
  4968.     (this,ev,index,tag,dataSizeIn,dataSizeOut,data);
  4969. }
  4970.  
  4971. /* method: RemoveItemCollectionItem */
  4972. OSStatus   RemoveItemCollectionItem(Environment *ev,
  4973.         HIItemIndex index,
  4974.         CollectionTag tag)
  4975. {
  4976.    return SOM_ResolveD(this,HIMenu,HIAbstractList,RemoveItemCollectionItem)
  4977.     (this,ev,index,tag);
  4978. }
  4979.  
  4980. /* method: GetEmbeddingParent */
  4981. HIEmbeddingPanel*   GetEmbeddingParent(Environment *ev)
  4982. {
  4983.    return SOM_ResolveD(this,HIMenu,HIPanel,GetEmbeddingParent)
  4984.     (this,ev);
  4985. }
  4986.  
  4987. /* method: InitPanel */
  4988. OSStatus   InitPanel(Environment *ev,
  4989.         RefLabel* identifier,
  4990.         HIWindow* window,
  4991.         Rect* bounds)
  4992. {
  4993.    return SOM_ResolveD(this,HIMenu,HIPanel,InitPanel)
  4994.     (this,ev,identifier,window,bounds);
  4995. }
  4996.  
  4997. /* method: RegisterInterestInAppleEvent */
  4998. OSStatus   RegisterInterestInAppleEvent(Environment *ev,
  4999.         AEHandlerTableRef table,
  5000.         AEEventClass eventClass,
  5001.         AEEventID eventID,
  5002.         HIEventRoutingType eventRouting)
  5003. {
  5004.    return SOM_ResolveD(this,HIMenu,HIPanel,RegisterInterestInAppleEvent)
  5005.     (this,ev,table,eventClass,eventID,eventRouting);
  5006. }
  5007.  
  5008. /* method: HasValidContent */
  5009. boolean   HasValidContent(Environment *ev)
  5010. {
  5011.    return SOM_ResolveD(this,HIMenu,HIPanel,HasValidContent)
  5012.     (this,ev);
  5013. }
  5014.  
  5015. /* method: GetDeepCollectionItemData */
  5016. OSStatus   GetDeepCollectionItemData(Environment *ev,
  5017.         CollectionTag tag,
  5018.         SInt32 id,
  5019.         ByteCount sizeAllowed,
  5020.         ByteCount* sizeReturned,
  5021.         void* itemData)
  5022. {
  5023.    return SOM_ResolveD(this,HIMenu,HIPanel,GetDeepCollectionItemData)
  5024.     (this,ev,tag,id,sizeAllowed,sizeReturned,itemData);
  5025. }
  5026.  
  5027. /* method: GetWindow */
  5028. HIWindow*   GetWindow(Environment *ev)
  5029. {
  5030.    return SOM_ResolveD(this,HIMenu,HIObject,GetWindow)
  5031.     (this,ev);
  5032. }
  5033.  
  5034. /* method: GetPort */
  5035. CGrafPtr   GetPort(Environment *ev)
  5036. {
  5037.    return SOM_ResolveD(this,HIMenu,HIObject,GetPort)
  5038.     (this,ev);
  5039. }
  5040.  
  5041. /* method: GetRefLabel */
  5042. void   GetRefLabel(Environment *ev,
  5043.         RefLabel* identifier)
  5044. {
  5045.    SOM_ResolveD(this,HIMenu,HIObject,GetRefLabel)
  5046.     (this,ev,identifier);
  5047. }
  5048.  
  5049. /* method: GetCollection */
  5050. Collection   GetCollection(Environment *ev)
  5051. {
  5052.    return SOM_ResolveD(this,HIMenu,HIObject,GetCollection)
  5053.     (this,ev);
  5054. }
  5055.  
  5056. /* method: Init */
  5057. OSStatus   Init(Environment *ev,
  5058.         RefLabel* identifier,
  5059.         Rect* boundingRect)
  5060. {
  5061.    return SOM_ResolveD(this,HIMenu,HIObject,Init)
  5062.     (this,ev,identifier,boundingRect);
  5063. }
  5064.  
  5065. /* method: Terminate */
  5066. void   Terminate(Environment *ev)
  5067. {
  5068.    SOM_ResolveD(this,HIMenu,HIObject,Terminate)
  5069.     (this,ev);
  5070. }
  5071.  
  5072. /* method: Clone */
  5073. HIObject*   Clone(Environment *ev)
  5074. {
  5075.    return SOM_ResolveD(this,HIMenu,HIObject,Clone)
  5076.     (this,ev);
  5077. }
  5078.  
  5079. /* method: Release */
  5080. void   Release(Environment *ev)
  5081. {
  5082.    SOM_ResolveD(this,HIMenu,HIObject,Release)
  5083.     (this,ev);
  5084. }
  5085.  
  5086. /* method: GetOwnerCount */
  5087. ItemCount   GetOwnerCount(Environment *ev)
  5088. {
  5089.    return SOM_ResolveD(this,HIMenu,HIObject,GetOwnerCount)
  5090.     (this,ev);
  5091. }
  5092.  
  5093. /* method: InitFromAERecord */
  5094. OSStatus   InitFromAERecord(Environment *ev,
  5095.         AESubDesc* baseInitializerData,
  5096.         AESubDesc* initializerDataForClass,
  5097.         HIAERecordDataFormat dataFormat)
  5098. {
  5099.    return SOM_ResolveD(this,HIMenu,HIObject,InitFromAERecord)
  5100.     (this,ev,baseInitializerData,initializerDataForClass,dataFormat);
  5101. }
  5102.  
  5103. /* method: WriteToAERecord */
  5104. OSStatus   WriteToAERecord(Environment *ev,
  5105.         AERecord* dataForSubclass,
  5106.         AERecord* objectData,
  5107.         HIAERecordDataFormat dataFormat)
  5108. {
  5109.    return SOM_ResolveD(this,HIMenu,HIObject,WriteToAERecord)
  5110.     (this,ev,dataForSubclass,objectData,dataFormat);
  5111. }
  5112.  
  5113. /* method: CalculateOptimalSize */
  5114. void   CalculateOptimalSize(Environment *ev,
  5115.         SInt16* optimalWidth,
  5116.         SInt16* optimalHeight)
  5117. {
  5118.    SOM_ResolveD(this,HIMenu,HIObject,CalculateOptimalSize)
  5119.     (this,ev,optimalWidth,optimalHeight);
  5120. }
  5121.  
  5122. /* method: GetBoundingRect */
  5123. void   GetBoundingRect(Environment *ev,
  5124.         HICoordinateSystem coordinate,
  5125.         Rect* boundingRect)
  5126. {
  5127.    SOM_ResolveD(this,HIMenu,HIObject,GetBoundingRect)
  5128.     (this,ev,coordinate,boundingRect);
  5129. }
  5130.  
  5131. /* method: SetBoundingRect */
  5132. void   SetBoundingRect(Environment *ev,
  5133.         HICoordinateSystem coordinate,
  5134.         Rect* newBoundingRect)
  5135. {
  5136.    SOM_ResolveD(this,HIMenu,HIObject,SetBoundingRect)
  5137.     (this,ev,coordinate,newBoundingRect);
  5138. }
  5139.  
  5140. /* method: SetPosition */
  5141. void   SetPosition(Environment *ev,
  5142.         HICoordinateSystem coordinate,
  5143.         Point* newPosition)
  5144. {
  5145.    SOM_ResolveD(this,HIMenu,HIObject,SetPosition)
  5146.     (this,ev,coordinate,newPosition);
  5147. }
  5148.  
  5149. /* method: SetSize */
  5150. void   SetSize(Environment *ev,
  5151.         SInt16 width,
  5152.         SInt16 height)
  5153. {
  5154.    SOM_ResolveD(this,HIMenu,HIObject,SetSize)
  5155.     (this,ev,width,height);
  5156. }
  5157.  
  5158. /* method: GetUpdateRect */
  5159. void   GetUpdateRect(Environment *ev,
  5160.         HICoordinateSystem coordinate,
  5161.         Rect* updateRect)
  5162. {
  5163.    SOM_ResolveD(this,HIMenu,HIObject,GetUpdateRect)
  5164.     (this,ev,coordinate,updateRect);
  5165. }
  5166.  
  5167. /* method: Enable */
  5168. void   Enable(Environment *ev)
  5169. {
  5170.    SOM_ResolveD(this,HIMenu,HIObject,Enable)
  5171.     (this,ev);
  5172. }
  5173.  
  5174. /* method: Disable */
  5175. void   Disable(Environment *ev)
  5176. {
  5177.    SOM_ResolveD(this,HIMenu,HIObject,Disable)
  5178.     (this,ev);
  5179. }
  5180.  
  5181. /* method: IsEnabled */
  5182. boolean   IsEnabled(Environment *ev)
  5183. {
  5184.    return SOM_ResolveD(this,HIMenu,HIObject,IsEnabled)
  5185.     (this,ev);
  5186. }
  5187.  
  5188. /* method: Show */
  5189. void   Show(Environment *ev)
  5190. {
  5191.    SOM_ResolveD(this,HIMenu,HIObject,Show)
  5192.     (this,ev);
  5193. }
  5194.  
  5195. /* method: Hide */
  5196. void   Hide(Environment *ev)
  5197. {
  5198.    SOM_ResolveD(this,HIMenu,HIObject,Hide)
  5199.     (this,ev);
  5200. }
  5201.  
  5202. /* method: IsVisible */
  5203. boolean   IsVisible(Environment *ev)
  5204. {
  5205.    return SOM_ResolveD(this,HIMenu,HIObject,IsVisible)
  5206.     (this,ev);
  5207. }
  5208.  
  5209. /* method: HandleAppleEvent */
  5210. OSStatus   HandleAppleEvent(Environment *ev,
  5211.         AEEventClass eventClass,
  5212.         AEEventID eventID,
  5213.         AppleEvent* theEvent,
  5214.         AppleEvent* reply,
  5215.         AEHandlerTableRef handlerTableRef)
  5216. {
  5217.    return SOM_ResolveD(this,HIMenu,HIObject,HandleAppleEvent)
  5218.     (this,ev,eventClass,eventID,theEvent,reply,handlerTableRef);
  5219. }
  5220.  
  5221. /* method: HandleActivate */
  5222. OSStatus   HandleActivate(Environment *ev,
  5223.         AppleEvent* theEvent,
  5224.         AppleEvent* reply,
  5225.         AEHandlerTableRef handlerTableRef)
  5226. {
  5227.    return SOM_ResolveD(this,HIMenu,HIObject,HandleActivate)
  5228.     (this,ev,theEvent,reply,handlerTableRef);
  5229. }
  5230.  
  5231. /* method: HandleDeactivate */
  5232. OSStatus   HandleDeactivate(Environment *ev,
  5233.         AppleEvent* theEvent,
  5234.         AppleEvent* reply,
  5235.         AEHandlerTableRef handlerTableRef)
  5236. {
  5237.    return SOM_ResolveD(this,HIMenu,HIObject,HandleDeactivate)
  5238.     (this,ev,theEvent,reply,handlerTableRef);
  5239. }
  5240.  
  5241. /* method: HandleNavigation */
  5242. OSStatus   HandleNavigation(Environment *ev,
  5243.         SInt8 key,
  5244.         SInt8 keyCode,
  5245.         EventModifiers modifiers,
  5246.         AppleEvent* theEvent,
  5247.         AppleEvent* reply,
  5248.         AEHandlerTableRef handlerTableRef)
  5249. {
  5250.    return SOM_ResolveD(this,HIMenu,HIObject,HandleNavigation)
  5251.     (this,ev,key,keyCode,modifiers,theEvent,reply,handlerTableRef);
  5252. }
  5253.  
  5254. /* method: HandleMouseDownInContent */
  5255. OSStatus   HandleMouseDownInContent(Environment *ev,
  5256.         Point* portLocalWhere,
  5257.         EventModifiers modifiers,
  5258.         AppleEvent* theEvent,
  5259.         AppleEvent* reply,
  5260.         AEHandlerTableRef handlerTableRef)
  5261. {
  5262.    return SOM_ResolveD(this,HIMenu,HIObject,HandleMouseDownInContent)
  5263.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  5264. }
  5265.  
  5266. /* method: HandleMouseMovedInContent */
  5267. OSStatus   HandleMouseMovedInContent(Environment *ev,
  5268.         Point* portLocalWhere,
  5269.         EventModifiers modifiers,
  5270.         AppleEvent* theEvent,
  5271.         AppleEvent* reply,
  5272.         AEHandlerTableRef handlerTableRef)
  5273. {
  5274.    return SOM_ResolveD(this,HIMenu,HIObject,HandleMouseMovedInContent)
  5275.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  5276. }
  5277.  
  5278. /* method: HandleMouseStoppedMovingInContent */
  5279. OSStatus   HandleMouseStoppedMovingInContent(Environment *ev,
  5280.         Point* portLocalWhere,
  5281.         EventModifiers modifiers,
  5282.         AppleEvent* theEvent,
  5283.         AppleEvent* reply,
  5284.         AEHandlerTableRef handlerTableRef)
  5285. {
  5286.    return SOM_ResolveD(this,HIMenu,HIObject,HandleMouseStoppedMovingInContent)
  5287.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  5288. }
  5289.  
  5290. /* method: HandleMouseUpInContent */
  5291. OSStatus   HandleMouseUpInContent(Environment *ev,
  5292.         Point* portLocalWhere,
  5293.         EventModifiers modifiers,
  5294.         AppleEvent* theEvent,
  5295.         AppleEvent* reply,
  5296.         AEHandlerTableRef handlerTableRef)
  5297. {
  5298.    return SOM_ResolveD(this,HIMenu,HIObject,HandleMouseUpInContent)
  5299.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  5300. }
  5301.  
  5302. /* method: TakeUserInputFocus */
  5303. void   TakeUserInputFocus(Environment *ev)
  5304. {
  5305.    SOM_ResolveD(this,HIMenu,HIObject,TakeUserInputFocus)
  5306.     (this,ev);
  5307. }
  5308.  
  5309. /* method: ReleaseUserInputFocus */
  5310. void   ReleaseUserInputFocus(Environment *ev)
  5311. {
  5312.    SOM_ResolveD(this,HIMenu,HIObject,ReleaseUserInputFocus)
  5313.     (this,ev);
  5314. }
  5315.  
  5316. /* method: HasUserInputFocus */
  5317. boolean   HasUserInputFocus(Environment *ev)
  5318. {
  5319.    return SOM_ResolveD(this,HIMenu,HIObject,HasUserInputFocus)
  5320.     (this,ev);
  5321. }
  5322.  
  5323. /* method: CanReleaseUserInputFocus */
  5324. boolean   CanReleaseUserInputFocus(Environment *ev)
  5325. {
  5326.    return SOM_ResolveD(this,HIMenu,HIObject,CanReleaseUserInputFocus)
  5327.     (this,ev);
  5328. }
  5329.  
  5330. /* method: SetUserInputFocusFlags */
  5331. void   SetUserInputFocusFlags(Environment *ev,
  5332.         HIUserInputFocusFlags flags)
  5333. {
  5334.    SOM_ResolveD(this,HIMenu,HIObject,SetUserInputFocusFlags)
  5335.     (this,ev,flags);
  5336. }
  5337.  
  5338. /* method: GetUserInputFocusFlags */
  5339. HIUserInputFocusFlags   GetUserInputFocusFlags(Environment *ev)
  5340. {
  5341.    return SOM_ResolveD(this,HIMenu,HIObject,GetUserInputFocusFlags)
  5342.     (this,ev);
  5343. }
  5344.  
  5345. /* method: SetTitle */
  5346. OSStatus   SetTitle(Environment *ev,
  5347.         ConstHIImageRef title,
  5348.         HIAdoptionFlags disposalAdoptionFlags)
  5349. {
  5350.    return SOM_ResolveD(this,HIMenu,HIObject,SetTitle)
  5351.     (this,ev,title,disposalAdoptionFlags);
  5352. }
  5353.  
  5354. /* method: GetTitle */
  5355. OSStatus   GetTitle(Environment *ev,
  5356.         HIImageRef* title)
  5357. {
  5358.    return SOM_ResolveD(this,HIMenu,HIObject,GetTitle)
  5359.     (this,ev,title);
  5360. }
  5361.  
  5362. /* method: Draw */
  5363. void   Draw(Environment *ev,
  5364.         CGrafPtr whichPort,
  5365.         RgnHandle drawRgn)
  5366. {
  5367.    SOM_ResolveD(this,HIMenu,HIObject,Draw)
  5368.     (this,ev,whichPort,drawRgn);
  5369. }
  5370.  
  5371. /* method: Erase */
  5372. void   Erase(Environment *ev,
  5373.         CGrafPtr whichPort,
  5374.         RgnHandle eraseRgn)
  5375. {
  5376.    SOM_ResolveD(this,HIMenu,HIObject,Erase)
  5377.     (this,ev,whichPort,eraseRgn);
  5378. }
  5379.  
  5380. /* method: Invalidate */
  5381. void   Invalidate(Environment *ev)
  5382. {
  5383.    SOM_ResolveD(this,HIMenu,HIObject,Invalidate)
  5384.     (this,ev);
  5385. }
  5386.  
  5387. /* method: GetDrawingMode */
  5388. HIDrawingMode   GetDrawingMode(Environment *ev)
  5389. {
  5390.    return SOM_ResolveD(this,HIMenu,HIObject,GetDrawingMode)
  5391.     (this,ev);
  5392. }
  5393.  
  5394. /* method: SetDrawingMode */
  5395. void   SetDrawingMode(Environment *ev,
  5396.         HIDrawingMode drawingMode)
  5397. {
  5398.    SOM_ResolveD(this,HIMenu,HIObject,SetDrawingMode)
  5399.     (this,ev,drawingMode);
  5400. }
  5401.  
  5402. /* method: SetBackgroundPattern */
  5403. void   SetBackgroundPattern(Environment *ev,
  5404.         PixPatHandle backgroundPattern)
  5405. {
  5406.    SOM_ResolveD(this,HIMenu,HIObject,SetBackgroundPattern)
  5407.     (this,ev,backgroundPattern);
  5408. }
  5409.  
  5410. /* method: GetBackgroundPattern */
  5411. PixPatHandle   GetBackgroundPattern(Environment *ev)
  5412. {
  5413.    return SOM_ResolveD(this,HIMenu,HIObject,GetBackgroundPattern)
  5414.     (this,ev);
  5415. }
  5416.  
  5417. /* method: Cut */
  5418. void   Cut(Environment *ev)
  5419. {
  5420.    SOM_ResolveD(this,HIMenu,HIObject,Cut)
  5421.     (this,ev);
  5422. }
  5423.  
  5424. /* method: Copy */
  5425. void   Copy(Environment *ev)
  5426. {
  5427.    SOM_ResolveD(this,HIMenu,HIObject,Copy)
  5428.     (this,ev);
  5429. }
  5430.  
  5431. /* method: Paste */
  5432. void   Paste(Environment *ev)
  5433. {
  5434.    SOM_ResolveD(this,HIMenu,HIObject,Paste)
  5435.     (this,ev);
  5436. }
  5437.  
  5438. /* method: Clear */
  5439. void   Clear(Environment *ev)
  5440. {
  5441.    SOM_ResolveD(this,HIMenu,HIObject,Clear)
  5442.     (this,ev);
  5443. }
  5444.  
  5445. /* method: GetClipboardSupportFlags */
  5446. HIClipboardSupportFlags   GetClipboardSupportFlags(Environment *ev)
  5447. {
  5448.    return SOM_ResolveD(this,HIMenu,HIObject,GetClipboardSupportFlags)
  5449.     (this,ev);
  5450. }
  5451.  
  5452. /* method: AddStateChangeCallback */
  5453. OSStatus   AddStateChangeCallback(Environment *ev,
  5454.         HIStateChangeCallbackProcPtr changedStateCallback,
  5455.         HIStateChangeCallbackRef* newCallbackRef)
  5456. {
  5457.    return SOM_ResolveD(this,HIMenu,HIObject,AddStateChangeCallback)
  5458.     (this,ev,changedStateCallback,newCallbackRef);
  5459. }
  5460.  
  5461. /* method: RemoveStateChangeCallback */
  5462. OSStatus   RemoveStateChangeCallback(Environment *ev,
  5463.         HIStateChangeCallbackRef callbackRefToRemove)
  5464. {
  5465.    return SOM_ResolveD(this,HIMenu,HIObject,RemoveStateChangeCallback)
  5466.     (this,ev,callbackRefToRemove);
  5467. }
  5468.  
  5469. /* noself procedure: GetHIObjectFromRefLabel */
  5470. static OSStatus   GetHIObjectFromRefLabel(Environment *ev,
  5471.         RefLabel* identifier,
  5472.         ItemCount requestedObjects,
  5473.         ItemCount* totalObjects,
  5474.         HIObject** theObjects)
  5475. {
  5476. return ((somTD_HIMenu_GetHIObjectFromRefLabel)HIObjectClassData.GetHIObjectFromRefLabel)
  5477.     (ev,identifier,requestedObjects,totalObjects,theObjects);
  5478. }
  5479.  
  5480. /* noself procedure: GetNewHIObject */
  5481. static OSStatus   GetNewHIObject(Environment *ev,
  5482.         AESubDesc* objectInitializer,
  5483.         HIObject** newObject)
  5484. {
  5485. return ((somTD_HIMenu_GetNewHIObject)HIObjectClassData.GetNewHIObject)
  5486.     (ev,objectInitializer,newObject);
  5487. }
  5488.  
  5489. /* noself procedure: GetNewHIObjectFromResource */
  5490. static OSStatus   GetNewHIObjectFromResource(Environment *ev,
  5491.         ResID objectInitializerResourceID,
  5492.         HIObject** newObject)
  5493. {
  5494. return ((somTD_HIMenu_GetNewHIObjectFromResource)HIObjectClassData.GetNewHIObjectFromResource)
  5495.     (ev,objectInitializerResourceID,newObject);
  5496. }
  5497.  
  5498. /* method: DrawContent */
  5499. void   DrawContent(Environment *ev,
  5500.         CGrafPtr whichPort,
  5501.         RgnHandle drawRgn)
  5502. {
  5503.    SOM_ResolveD(this,HIMenu,HIObject,DrawContent)
  5504.     (this,ev,whichPort,drawRgn);
  5505. }
  5506.  
  5507. /* method: EraseContent */
  5508. void   EraseContent(Environment *ev,
  5509.         CGrafPtr whichPort,
  5510.         RgnHandle regionToErase)
  5511. {
  5512.    SOM_ResolveD(this,HIMenu,HIObject,EraseContent)
  5513.     (this,ev,whichPort,regionToErase);
  5514. }
  5515.  
  5516. /* method: TranslatePoint */
  5517. void   TranslatePoint(Environment *ev,
  5518.         HICoordinateSystem translateFrom,
  5519.         HICoordinateSystem translateTo,
  5520.         Point* sourcePoint,
  5521.         Point* translatedPoint)
  5522. {
  5523.    SOM_ResolveD(this,HIMenu,HIObject,TranslatePoint)
  5524.     (this,ev,translateFrom,translateTo,sourcePoint,translatedPoint);
  5525. }
  5526.  
  5527. /* method: TranslateRect */
  5528. void   TranslateRect(Environment *ev,
  5529.         HICoordinateSystem translateFrom,
  5530.         HICoordinateSystem translateTo,
  5531.         Rect* sourceRect,
  5532.         Rect* translatedRect)
  5533. {
  5534.    SOM_ResolveD(this,HIMenu,HIObject,TranslateRect)
  5535.     (this,ev,translateFrom,translateTo,sourceRect,translatedRect);
  5536. }
  5537.  
  5538. /* method: StateChanged */
  5539. void   StateChanged(Environment *ev,
  5540.         HIStateChangeCodeCreator selectorCreator,
  5541.         HIStateChangeCode changedCode)
  5542. {
  5543.    SOM_ResolveD(this,HIMenu,HIObject,StateChanged)
  5544.     (this,ev,selectorCreator,changedCode);
  5545. }
  5546.  
  5547. /* method: SetClipboardSupportFlags */
  5548. void   SetClipboardSupportFlags(Environment *ev,
  5549.         HIClipboardSupportFlags flags)
  5550. {
  5551.    SOM_ResolveD(this,HIMenu,HIObject,SetClipboardSupportFlags)
  5552.     (this,ev,flags);
  5553. }
  5554.  
  5555. /* method: Verify */
  5556. OSStatus   Verify(Environment *ev)
  5557. {
  5558.    return SOM_ResolveD(this,HIMenu,HIObject,Verify)
  5559.     (this,ev);
  5560. }
  5561.  
  5562. /* method: somInit */
  5563. void   somInit()
  5564. {
  5565.    SOM_ResolveD(this,HIMenu,SOMObject,somInit)
  5566.     (this);
  5567. }
  5568.  
  5569. /* method: somUninit */
  5570. void   somUninit()
  5571. {
  5572.    SOM_ResolveD(this,HIMenu,SOMObject,somUninit)
  5573.     (this);
  5574. }
  5575.  
  5576. /* method: somDuplicateReference */
  5577. SOMObject*   somDuplicateReference()
  5578. {
  5579.    return SOM_ResolveD(this,HIMenu,SOMObject,somDuplicateReference)
  5580.     (this);
  5581. }
  5582.  
  5583. /* method: somCompareReference */
  5584. boolean   somCompareReference(SOMObject* anObject)
  5585. {
  5586.    return SOM_ResolveD(this,HIMenu,SOMObject,somCompareReference)
  5587.     (this,anObject);
  5588. }
  5589.  
  5590. /* method: somRelease */
  5591. SOMObject*   somRelease()
  5592. {
  5593.    return SOM_ResolveD(this,HIMenu,SOMObject,somRelease)
  5594.     (this);
  5595. }
  5596.  
  5597. /* method: somFree */
  5598. void   somFree()
  5599. {
  5600.    SOM_ResolveD(this,HIMenu,SOMObject,somFree)
  5601.     (this);
  5602. }
  5603.  
  5604. /* method: somCanDelete */
  5605. boolean   somCanDelete()
  5606. {
  5607.    return SOM_ResolveD(this,HIMenu,SOMObject,somCanDelete)
  5608.     (this);
  5609. }
  5610.  
  5611. /* method: somGetClass */
  5612. SOMClass*   somGetClass()
  5613. {
  5614.    return SOM_ResolveD(this,HIMenu,SOMObject,somGetClass)
  5615.     (this);
  5616. }
  5617.  
  5618. /* method: somGetClassName */
  5619. corbastring   somGetClassName()
  5620. {
  5621.    return SOM_ResolveD(this,HIMenu,SOMObject,somGetClassName)
  5622.     (this);
  5623. }
  5624.  
  5625. /* method: somGetSize */
  5626. long   somGetSize()
  5627. {
  5628.    return SOM_ResolveD(this,HIMenu,SOMObject,somGetSize)
  5629.     (this);
  5630. }
  5631.  
  5632. /* method: somIsA */
  5633. boolean   somIsA(SOMClass* aClassObj)
  5634. {
  5635.    return SOM_ResolveD(this,HIMenu,SOMObject,somIsA)
  5636.     (this,aClassObj);
  5637. }
  5638.  
  5639. /* method: somRespondsTo */
  5640. boolean   somRespondsTo(somId mId)
  5641. {
  5642.    return SOM_ResolveD(this,HIMenu,SOMObject,somRespondsTo)
  5643.     (this,mId);
  5644. }
  5645.  
  5646. /* method: somIsInstanceOf */
  5647. boolean   somIsInstanceOf(SOMClass* aClassObj)
  5648. {
  5649.    return SOM_ResolveD(this,HIMenu,SOMObject,somIsInstanceOf)
  5650.     (this,aClassObj);
  5651. }
  5652.  
  5653. /* va_list method: somDispatch */
  5654. /* the va_list invocation form */
  5655. boolean   HIMenu_somDispatch(somToken* retValue,
  5656.         somId methodId,
  5657.         va_list ap)
  5658. {
  5659.    return SOM_ResolveD(this,HIMenu,SOMObject,somDispatch)
  5660.     (this,retValue,methodId,ap);
  5661. }
  5662.  
  5663. /* the varargs invocation form */
  5664. boolean   somDispatch(somToken* retValue,
  5665.         somId methodId,
  5666.         ...)
  5667. {
  5668.    va_list ap;
  5669.    va_start(ap, methodId);
  5670.       boolean __somResult = 
  5671.       (boolean) SOM_ResolveD(this,HIMenu,SOMObject,somDispatch)
  5672.     (this,retValue,methodId,ap);
  5673.    va_end(ap);
  5674.    return __somResult;
  5675. }
  5676.  
  5677. /* va_list method: somClassDispatch */
  5678. /* the va_list invocation form */
  5679. boolean   HIMenu_somClassDispatch(SOMClass* clsObj,
  5680.         somToken* retValue,
  5681.         somId methodId,
  5682.         va_list ap)
  5683. {
  5684.    return SOM_ResolveD(this,HIMenu,SOMObject,somClassDispatch)
  5685.     (this,clsObj,retValue,methodId,ap);
  5686. }
  5687.  
  5688. /* the varargs invocation form */
  5689. boolean   somClassDispatch(SOMClass* clsObj,
  5690.         somToken* retValue,
  5691.         somId methodId,
  5692.         ...)
  5693. {
  5694.    va_list ap;
  5695.    va_start(ap, methodId);
  5696.       boolean __somResult = 
  5697.       (boolean) SOM_ResolveD(this,HIMenu,SOMObject,somClassDispatch)
  5698.     (this,clsObj,retValue,methodId,ap);
  5699.    va_end(ap);
  5700.    return __somResult;
  5701. }
  5702.  
  5703. /* method: somCastObj */
  5704. boolean   somCastObj(SOMClass* cls)
  5705. {
  5706.    return SOM_ResolveD(this,HIMenu,SOMObject,somCastObj)
  5707.     (this,cls);
  5708. }
  5709.  
  5710. /* method: somResetObj */
  5711. boolean   somResetObj()
  5712. {
  5713.    return SOM_ResolveD(this,HIMenu,SOMObject,somResetObj)
  5714.     (this);
  5715. }
  5716.  
  5717. /* method: somPrintSelf */
  5718. SOMObject*   somPrintSelf()
  5719. {
  5720.    return SOM_ResolveD(this,HIMenu,SOMObject,somPrintSelf)
  5721.     (this);
  5722. }
  5723.  
  5724. /* method: somDumpSelf */
  5725. void   somDumpSelf(long level)
  5726. {
  5727.    SOM_ResolveD(this,HIMenu,SOMObject,somDumpSelf)
  5728.     (this,level);
  5729. }
  5730.  
  5731. /* method: somDumpSelfInt */
  5732. void   somDumpSelfInt(long level)
  5733. {
  5734.    SOM_ResolveD(this,HIMenu,SOMObject,somDumpSelfInt)
  5735.     (this,level);
  5736. }
  5737.  
  5738. };   /* HIMenu */
  5739.  
  5740.  
  5741.  
  5742. #endif       /* SOM_HIMenu_xh */
  5743.